Home Reference Source

References

summary
public

F error(response: Object): Object

Output Request-Promise error, used to create Promise reject

public

F output(response: Object): Object

Output Request-Promise response, used to create Promise resolve

public

Events of Request-Promise

api

summary
public

F getAccount(options: Object, id: number | string): Promise

GET /admin/account.xml

public

F editAsset(options: Object, id: Number | String): Promise

PUT /admin/themes/#{theme_id}/assets/#{id}.xml

public

F getAsset(options: Object, id: Number | String): Promise

GET /admin/themes/#{theme_id}/assets/#{id}.xml

public

F listAsset(options: Object, id: Number | String): Promise

GET /admin/themes/#{theme_id}/assets.xml

public

F removeAsset(options: Object, id: Number | String): Promise

DELETE /admin/themes/#{theme_id}/assets/#{id}.xml

public

F renameAsset(options: Object, id: Number | String): Promise

PUT /admin/themes/#{theme_id}/assets/#{id}/rename.xml

public

F uploadAsset(options: Object, id: Number | String): Promise

POST /admin/themes/#{theme_id}/assets.xml

public

F createCharge(options: Object, id: Number | String): Promise

POST /admin/application_charges.xml

public

F declineCharge(options: Object, id: Number | String): Promise

POST /admin/application_charges/{id}/decline.xml

public

F getCharge(options: Object, id: Number | String): Promise

GET /admin/application_charges/{id}.xml

public

F listCharge(options: Object, id: Number | String): Promise

GET /admin/application_charges.xml

public

F getCollection(options: Object, id: Number | String): Promise

GET /admin/collections/{id}.xml

public

F listCollection(options: Object, id: Number | String): Promise

GET /admin/collections.xml

public

F createCoupon(options: Object, id: Number | String): Promise

POST /admin/discount_codes.xml

public

F editCoupon(options: Object, id: Number | String): Promise

PUT /admin/discount_codes/{id}.xml

public

F getCoupon(options: Object, id: Number | String): Promise

GET /admin/discount_codes/{id}.xml

public

F listCoupon(options: Object, id: Number | String): Promise

GET /admin/discount_codes.xml

public

F removeCoupon(options: Object, id: Number | String): Promise

DELETE /admin/discount_codes/{id}.xml

public

F listFile(options: Object, id: Number | String): Promise

GET /admin/files.xml

public

F removeFile(options: Object, id: Number | String): Promise

DELETE /admin/files/{id}.xml

public

F uploadFile(options: Object, id: Number | String): Promise

POST /admin/files.xml

public

F createJsTag(options: Object, id: Number | String): Promise

POST /admin/js_tags.xml

public

POST /admin/price_kinds.json

public

F editPriceKind(options: Object, id: Number | String): Promise

PUT /admin/price_kinds/{id}.xml

public

F getPriceKind(options: Object, id: Number | String): Promise

GET /admin/price_kinds/{id}.json

public

F listPriceKind(options: Object, id: Number | String): Promise

GET /admin/price_kinds.json

public

DELETE /admin/price_kinds/{id}.json

public

F createProduct(options: Object, id: Number | String): Promise

POST /admin/products.xml

public

F editProduct(options: Object, id: Number | String): Promise

PUT /admin/products/{id}.xml

public

F getProduct(options: Object, id: Number | String): Promise

GET /admin/products/{id}.xml

public

F listProduct(options: Object, id: Number | String): Promise

GET /admin/products.xml

public

F removeProduct(options: Object, id: Number | String): Promise

DELETE /admin/products/{id}.xml

public

PUT /admin/recurring_application_charge.xml

public

POST /admin/recurring_application_charge.xml

public

F getRecurring(options: Object, id: Number | String): Promise

GET /admin/recurring_application_charge.xml

public

DELETE /admin/recurring_application_charge.xml

public

F listThemes(options: Object, id: Number | String): Promise

GET /admin/themes.xml

public

F token(token: String | Number, secret: String | Number): String

Generate access token for shop

methods

summary
public

F get(conn: Object): Promise

GET request

public

F post(conn: Object): Promise

POST request

public

F put(conn: Object): Promise

PUT request

public

F remove(conn: Object): Promise

DELETE request

Directories