kiab_sdk
KiabSdk - JavaScript client for kiab_sdk KIAB SMS Service This SDK is automatically generated by the Swagger Codegen project:
- API version:
- Package version: 1.0.0
- Build package: io.swagger.codegen.languages.JavascriptClientCodegen
Installation
Node.js
Fornpm
To publish the library as a npm, please follow the procedure in "Publishing npm packages".
Then install it via:
npm install kiab_sdk --save
git
If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:
npm install GIT_USER_ID/GIT_REPO_ID --save
For browser
The library also works in the browser environment via npm and browserify. After following
the above steps with Node.js and installing browserify with npm install -g browserify
,
perform the following (assuming main.js is your entry file):
browserify main.js > bundle.js
Then include bundle.js in the HTML pages.
Getting Started
Please follow the installation instruction and execute the following JS code:
var KiabSdk = require('kiab_sdk');
var api = new KiabSdk.AuthApi()
var opts = {
'body': new KiabSdk.Body() // {Body}
};
api.authtoken(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 http://localhost:8500
Class | Method | HTTP request | Description |
---|---|---|---|
KiabSdk.AuthApi | authtoken | POST /authtoken | authtoken |
KiabSdk.CallbacksApi | dlrCallback | GET /dlr-callback | dlr-callback |
KiabSdk.CallbacksApi | moCallback | GET /mo-callback | mo-callback |
KiabSdk.FakesmsApi | fakeSMS | POST /fake-sms | fake-sms |
KiabSdk.LogsApi | logs | GET /logs | logs |
KiabSdk.MocallbackApi | dlrCallback | GET /dlr-callback | dlr-callback |
KiabSdk.MocallbackApi | moCallback | GET /mo-callback | mo-callback |
KiabSdk.SendsmsApi | sendSMS | POST /send-sms | send-sms |
KiabSdk.StatusApi | status | GET /status | status |
Documentation for Models
- KiabSdk.Body
- KiabSdk.Body1
- KiabSdk.DlrCallback
- KiabSdk.Error
- KiabSdk.ErrorError
- KiabSdk.InlineResponse200
- KiabSdk.InlineResponse2001
- KiabSdk.InlineResponse2002
- KiabSdk.InlineResponse2003
- KiabSdk.InlineResponse2004
- KiabSdk.InlineResponse2004Received
- KiabSdk.InlineResponse2004Smscs
- KiabSdk.InlineResponse2004Stats
- KiabSdk.InlineResponse2004StatsSms
- KiabSdk.InlineResponse200Info
- KiabSdk.InlineResponse200InfoClient
- KiabSdk.InlineResponse200InfoUser
- KiabSdk.InlineResponse500
- KiabSdk.InlineResponse503
- KiabSdk.MoCallback
- KiabSdk.SmsRequest
- KiabSdk.SmsStats
- KiabSdk.SmsstatsRates
Documentation for Authorization
oauth2
- Type: OAuth
- Flow: application
- Authorization URL:
- Scopes: N/A