![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
classy-pay-client
Advanced tools
Simple client for Classy Pay.
$ yarn install classy-pay-client
PayClient.request(appId, method, resource, payload, params, callback)
const PayClient = require('classy-pay-client')({
apiUrl: 'https://pay.classy.org',
timeout: 10000,
token: 'YOUR_TOKEN'
secret: 'YOUR_SECRET'
});
PayClient.get(0, '/transaction/1', (error, result) => {
if (error) {
console.log(error);
} else {
console.log(result);
}
});
PayClient.request(0, 'GET', '/transaction/1', null, null, (error, result) => {
if (error) {
console.log(error);
} else {
console.log(result);
}
});
Object
Get all the necessary headers for the request.
Object
Build the request query.
Object
Get the request options.
Object
Get the response for http request.
A general Pay request.
Number
Retrieve the total number of objects for the resource.
Promise
Get all the objects for a resource.
Get all objects.
Get an object.
Array
Get a list of objects for a resource.
Object
Get an object given a resource.
Object
Create an object at a resource.
Object
Update an object at a resource.
Object
Remove an object at a resource.
Object
Get all the necessary headers for the request.
Kind: global function
Returns: Object
- the headers objects
Param | Type | Description |
---|---|---|
context | Object | the request context |
method | String | the HTTP method for the request |
resource | String | the resource being requested |
payload | Object | the body of the request |
Object
Build the request query.
Kind: global function
Returns: Object
- params for request
Param | Type | Description |
---|---|---|
appId | Number | the pay application id |
params | Object | params passed by client user |
Object
Get the request options.
Kind: global function
Returns: Object
- the options for the request
Param | Type | Description |
---|---|---|
context | Object | the request context |
appId | Number | the pay application id |
method | String | the http method |
resource | String | the resource for the request |
payload | Object | the body of the request |
params | Object | the params provided by the caller |
Object
Get the response for http request.
Kind: global function
Returns: Object
- a well formed response object
Param | Type | Description |
---|---|---|
error | Object | the error |
response | Object | the http response |
body | Object | the body of the response |
A general Pay request.
Kind: global function
Param | Type | Description |
---|---|---|
context | Object | the context for the request |
appId | Number | the pay application id |
method | String | the http method |
resource | String | the pay resource |
payload | Object | the payload for the request |
params | Object | the parameters for the request |
callback | Method | a callback |
Number
Retrieve the total number of objects for the resource.
Kind: global function
Returns: Number
- the total number of objects for the resource
Param | Type | Description |
---|---|---|
context | Object | the context for the request |
appId | Number | the pay application id |
resource | String | the pay resource |
Promise
Get all the objects for a resource.
Kind: global function
Returns: Promise
- a promise when resolved populates the collection
Param | Type | Description |
---|---|---|
context | Object | the context for the request |
appId | Number | the pay application id |
resource | String | the pay resource |
max | Number | total objects to retrieve |
collection | Array | the collection to add objects to |
Get all objects.
Kind: global function
Param | Type | Description |
---|---|---|
context | Object | the context for the request |
appId | Number | the pay application id |
resource | String | the pay resource |
callback | function | the callback |
Get an object.
Kind: global function
Param | Type | Description |
---|---|---|
context | Object | the context for the request |
appId | Number | the pay application id |
method | String | the http method |
resource | String | the pay resource |
body | Object | the body of the request |
callback | function | the callback |
Array
Get a list of objects for a resource.
Kind: global function
Returns: Array
- an array of objects
Param | Type | Description |
---|---|---|
context | Object | the context for the request |
appId | Number | the pay application id |
resource | String | the pay resource |
callback | function | the callback |
Object
Get an object given a resource.
Kind: global function
Returns: Object
- an object
Param | Type | Description |
---|---|---|
context | Object | the context for the request |
appId | Number | the pay application id |
resource | String | the pay resource |
callback | function | the callback |
Object
Create an object at a resource.
Kind: global function
Returns: Object
- the created object
Param | Type | Description |
---|---|---|
context | Object | the context for the request |
appId | Number | the pay application id |
resource | String | the pay resource |
object | Object | the object to create |
callback | function | the callback |
Object
Update an object at a resource.
Kind: global function
Returns: Object
- the updated object
Param | Type | Description |
---|---|---|
context | Object | the context for the request |
appId | Number | the pay application id |
resource | String | the pay resource |
object | Object | the updated object |
callback | function | the callback |
Object
Remove an object at a resource.
Kind: global function
Returns: Object
- the removed object
Param | Type | Description |
---|---|---|
context | Object | the context for the request |
appId | Number | the pay application id |
resource | String | the pay resource |
callback | function | the callback |
FAQs
Client for Classy Pay.
The npm package classy-pay-client receives a total of 19 weekly downloads. As such, classy-pay-client popularity was classified as not popular.
We found that classy-pay-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.