0.0.2 • Published 8 years ago

@heatworks/hls-tests-api-js v0.0.2

Weekly downloads
1
License
MIT
Repository
-
Last release
8 years ago

HLS Tests API

Autogenerated ~ Sorry for the gibberish.

HlsTests - JavaScript client for hls___tests No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) This SDK is automatically generated by the Swagger Codegen project:

  • API version: 2017-06-20T13:31:11Z
  • Package version: 2017-06-20T13:31:11Z
  • 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 hls___tests --save

git

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

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

var defaultClient = HlsTests.ApiClient.instance;

// Configure API key authorization: oAuth_2_0
var oAuth_2_0 = defaultClient.authentications['oAuth_2_0'];
oAuth_2_0.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//oAuth_2_0.apiKeyPrefix['Authorization'] = "Token"

var api = new HlsTests.DefaultApi()

var opts = { 
  'name': "name_example" // {String} 
};

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

Documentation for API Endpoints

All URIs are relative to https://d3kndyx4n9.execute-api.us-east-1.amazonaws.com/pre_alpha

ClassMethodHTTP requestDescription
HlsTests.DefaultApitestDeleteDELETE /Test
HlsTests.DefaultApitestGetGET /Test
HlsTests.DefaultApitestOptionsOPTIONS /Test
HlsTests.DefaultApitestPutPUT /Test
HlsTests.DefaultApitestsGetGET /Tests
HlsTests.DefaultApitestsOptionsOPTIONS /Tests

Documentation for Models

Documentation for Authorization

oAuth_2_0

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

8 years ago

0.0.1

8 years ago