3.0.0 • Published 7 years ago

api_natura_auth v3.0.0

Weekly downloads
1
License
Unlicense
Repository
-
Last release
7 years ago

api_natura_auth

ApiNaturaAuth - JavaScript client for api_natura_auth Api Natura Auth This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0
  • Package version: 1.0
  • 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 api_natura_auth --save

git

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

    npm install YOUR_USERNAME/api_natura_auth --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 ApiNaturaAuth = require('api_natura_auth');

var api = new ApiNaturaAuth.OAuthApi()

var contentType = "contentType_example"; // {String} Fixed 'application/json'

var authorization = 56; // {Number} Authorization code generated in the format 'Basic +code' with code in base64 codification.

var clientId = 789; // {Number} Client Id.

var tokenInformation = new ApiNaturaAuth.Information(); // {Information} Informations required for token generation.


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

Documentation for API Endpoints

All URIs are relative to https://hml.natura.sensedia.com/api-token/v1

ClassMethodHTTP requestDescription
ApiNaturaAuth.OAuthApigenerateAccessTokenPOST /oauth/access-tokenCreates an Access-Token

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

3.0.0

7 years ago

2.0.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago