Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
plasma-order-api-client-js
Advanced tools
Readme
Kind: global class
Array
Object
Object
Object
Bool
Promise
Orders API JS client.
In order to use Orders API you should create an instance of this class.
import Orders from "tm-orders-api-client-js";
const products = new Orders ('http://service-orders.dev/api/v2', 'en');
Array
Get list of users orders
Kind: instance method of Orders
Returns: Array
-
[ { "affiliate_id": "TM", "order_id": "NDrMh3S3XvSt0LfbHoWh", "user_id": "124088", "date": 1481166873, "status": 1, "amount": "138", "locale": "EN", "project_id": "0", "merchantTransactionId": "", "merchantSystem": "PayPal", "products": [ { "id": "52995", "class": "template", "price": "89", "license": "single site", "products": [] }, { "id": "53001", "class": "template", "price": "75", "license": "single site", "products": [] }, { "id": "55932", "class": "template", "price": "11", "license": "single site", "products": [], "name": "PRO Industry PSD Template", "url": "/psd-templates/pro-industry-psd-template-55932.html", "type": "PSD Template", "image": "55932-original.jpg" } ] }, ...]
Param | Type | Description |
---|---|---|
token | String | User token |
params | Object | list of orders parameters { page: Number, per-page: Number, product-type: String, product-ids: String, ids: String } |
Object
Get Order By ID
Kind: instance method of Orders
Returns: Object
-
{ "affiliate_id": "TM", "order_id": "NDrMh3S3XvSt0LfbHoWh", "user_id": "124088", "date": 1481166873, "status": 1, "amount": "138", "locale": "EN", "project_id": "0", "merchantTransactionId": "", "merchantSystem": "PayPal", "products": [ { "id": "52995", "class": "template", "price": "89", "license": "single site", "products": [] }, { "id": "53001", "class": "template", "price": "75", "license": "single site", "products": [] }, { "id": "55932", "class": "template", "price": "11", "license": "single site", "products": [], "name": "PRO Industry PSD Template", "url": "/psd-templates/pro-industry-psd-template-55932.html", "type": "PSD Template", "image": "55932-original.jpg" } ] }
Param | Type | Description |
---|---|---|
token | String | User token |
ID | Number | Order ID |
Object
Restore Download Link
Kind: instance method of Orders
Returns: Object
-
{ "orderId": "xdtGS1apwbLKmv9ZXOlV", "productId": 123, "link": "http://dddd.ccc/dgdfgdfg", "downloadStatus": "inZipper", "isExpired": false, "rate": 1, "zipperTime": 1 }
Param | Type | Description |
---|---|---|
token | String | User token |
orderID | Number | Order ID |
productID | Number | Product ID |
Object
Check Download Link
Kind: instance method of Orders
Returns: Object
-
{ "orderId": "xdtGS1apwbLKmv9ZXOlV", "productId": 123, "link": "http://dddd.ccc/dgdfgdfg", "downloadStatus": "inZipper", "isExpired": false, "rate": 1, "zipperTime": 1 }
Param | Type | Description |
---|---|---|
token | String | User token |
orderID | Number | Order ID |
productID | Number | Product ID |
Bool
Return Correct id or not
Kind: instance method of Orders
Param | Type | Description |
---|---|---|
id | Number | Product id |
Promise
Return Fetch Promise
Kind: instance method of Orders
Param | Type | Description |
---|---|---|
url | String | Where request go |
token | String | auth user token |
FAQs
Orders API JS client
The npm package plasma-order-api-client-js receives a total of 0 weekly downloads. As such, plasma-order-api-client-js popularity was classified as not popular.
We found that plasma-order-api-client-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.