0.1.0 • Published 4 years ago
marax-server-sdk v0.1.0
mars_server_sdk
MarsServerSdk - JavaScript client for mars_server_sdk Marax Reward Handler API This SDK is automatically generated by the OpenAPI Generator project:
- API version: 0.1.0
- Package version: 0.1.0
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
Getting Started
Please follow the installation instruction and execute the following JS code:
var MarsServerSdk = require('mars_server_sdk');
var defaultClient = MarsServerSdk.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['X-API-KEY'] = "Token"
var api = new MarsServerSdk.AdminApi()
var opts = {
'requestBody': new MarsServerSdk.RequestBody() // {RequestBody} Details of transactional event
};
api.eventProcessPost(opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Documentation for API Endpoints
All URIs are relative to https://marax-test.free.beeceptor.com
Class | Method | HTTP request | Description |
---|---|---|---|
MarsServerSdk.AdminApi | eventProcessPost | POST /event/process | Perform reward post-processing |
Documentation for Models
- MarsServerSdk.Model200Response
- MarsServerSdk.Model400Response
- MarsServerSdk.Model500Response
- MarsServerSdk.RequestBody
- MarsServerSdk.RequestBodyProperties
- MarsServerSdk.RequestBodyPropertiesFulfillment
- MarsServerSdk.RequestBodyPropertiesProducts
- MarsServerSdk.RequestBodyPropertiesReward
- MarsServerSdk.RequestBodyPropertiesTotalCartPrice
- MarsServerSdk.RequestBodyPropertiesTotalDiscount
- MarsServerSdk.RequestBodyPropertiesTotalOrderPrice
ApiKeyAuth
- Type: API key
- API key parameter name: X-API-KEY
- Location: HTTP header
0.1.0
4 years ago