Socket
Socket
Sign inDemoInstall

routetrader_sms

Package Overview
Dependencies
195
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    routetrader_sms

pSDK_documentation_to_use_voicesmsexpress_SMS_API__This_is_intail_draft_p


Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

routetrader_sms

routetradersms - JavaScript client for routetrader_sms

SDK documentation to use voicesmsexpress SMS API. This is intail draft.

This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
  • API version: 0.0.1
  • Package version: 0.0.1
  • Build package: io.swagger.codegen.languages.JavascriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install routetrader_sms --save
git

If the library is hosted at a git repository, e.g. https://github.com/YOUR_USERNAME/routetrader_sms then install it via:

    npm install YOUR_USERNAME/routetrader_sms --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.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var routetradersms = require('routetrader_sms');

var defaultClient = routetradersms.ApiClient.instance;

// Configure HTTP basic authorization: Default
var Default = defaultClient.authentications['Default'];
Default.username = 'YOUR USERNAME'
Default.password = 'YOUR PASSWORD'

var api = new routetradersms.AuthenticateApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createToken(callback);

Documentation for API Endpoints

All URIs are relative to https://api.routetrader.co.uk:8443

ClassMethodHTTP requestDescription
routetradersms.AuthenticateApicreateTokenPOST /authenticateoAuth access token
routetradersms.PriceApigetPriceListGET /price
routetradersms.SendApisendSmsPOST /send

Documentation for Models

Documentation for Authorization

ApiKeyAuth

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Default

  • Type: HTTP basic authentication

oAuth

  • Type: OAuth
  • Flow: password
  • Authorization URL:
  • Scopes:
    • send: send sms

FAQs

Last updated on 19 Feb 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc