1.0.0 • Published 8 years ago

shinchen5 v1.0.0

Weekly downloads
5
License
-
Repository
-
Last release
8 years ago

shinchen5

Shinchen5 - JavaScript client for shinchen5 Move your app forward with the Uber API This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build date: 2016-04-18T10:34:04.139Z
  • Build package: class 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 shinchen5 --save

git

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

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

var api = new Shinchen5.EstimatesApi()

var startLatitude = 1.2; // {Number} Latitude component of start location.

var startLongitude = 1.2; // {Number} Longitude component of start location.

var endLatitude = 1.2; // {Number} Latitude component of end location.

var endLongitude = 1.2; // {Number} Longitude component of end location.

var opts = { 
  'attri': "attri_example" // {String} good job
};

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

Documentation for API Endpoints

All URIs are relative to http://127.0.0.1:8080/rubik-web

ClassMethodHTTP requestDescription
Shinchen5.EstimatesApiestimatesPriceGetGET /estimates/pricePrice Estimates
Shinchen5.EstimatesApiestimatesTimeGetGET /estimates/timeTime Estimates
Shinchen5.ProductsApiproductsGetGET /productsProduct Types
Shinchen5.UserApihistoryGetGET /historyUser Activity
Shinchen5.UserApimeGetGET /meUser Profile

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

1.0.0

8 years ago