0.1.0 • Published 4 years ago

marax-server-sdk v0.1.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
4 years ago

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

ClassMethodHTTP requestDescription
MarsServerSdk.AdminApieventProcessPostPOST /event/processPerform reward post-processing

Documentation for Models

ApiKeyAuth

  • Type: API key
  • API key parameter name: X-API-KEY
  • Location: HTTP header