0.1.0 • Published 11 months ago
@ayinke/otito-js v0.1.0
Otito-JS
This SDK is automatically generated by the OpenAPI Generator project:
Installation
For Node.js
npm
Then install it via:
npm install @ayinke/otito-js --save
yarn add @ayinke/otito-js
Finally, you need to build the module:
npm run build
Getting Started
Please follow the installation instructions and run the following JS code:
var OtitoApiDocumentation = require('@ayinke/otito-js');
var defaultClient = OtitoApiDocumentation.ApiClient.instance;
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "sk_YOUR_API_KEY"
ApiKeyAuth.apiKeyPrefix['Authorization'] = "Bearer"
var api = new OtitoApiDocumentation.ApplicationApi()
var message = new OtitoApiDocumentation.ServerCreateApplicationRequest("name of app");
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.applicationsPost(message, callback);
0.1.0
11 months ago