otoboto_backend
v1.6.1
Published
ERROR_UNKNOWN
Downloads
35
Readme
otoboto_backend
OtobotoBackend - JavaScript client for otoboto_backend 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: 1.6.1
- Package version: 1.6.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 otoboto_backend --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 OtobotoBackend = require('otoboto_backend');
var api = new OtobotoBackend.DefaultApi()
var token = new OtobotoBackend.Token(); // {Token}
api.authTemp(token).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Documentation for API Endpoints
All URIs are relative to http://localhost:10010/
Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- OtobotoBackend.DefaultApi | authTemp | POST /auth/temp | OtobotoBackend.DefaultApi | authTempNew | GET /auth/temp | OtobotoBackend.DefaultApi | deleteLike | DELETE /user/like | OtobotoBackend.DefaultApi | dislikeThreshold | POST /user/dislikeThreshold | OtobotoBackend.DefaultApi | getCar | GET /car | OtobotoBackend.DefaultApi | getFbUser | GET /user/fb/{fbid} | OtobotoBackend.DefaultApi | getLikedItems | GET /user/likedItems | OtobotoBackend.DefaultApi | getPrefs | GET /user/prefs | OtobotoBackend.DefaultApi | getTest | GET /test | OtobotoBackend.DefaultApi | getTokenUser | GET /user | OtobotoBackend.DefaultApi | getUserCar | GET /user/car | OtobotoBackend.DefaultApi | getUserExcludes | GET /user/exclude | OtobotoBackend.DefaultApi | getUserStats | GET /user/states | OtobotoBackend.DefaultApi | hello | GET /hello | OtobotoBackend.DefaultApi | postAuthBotFb | POST /auth/bot/fb | OtobotoBackend.DefaultApi | postAuthFb | POST /auth/fb | OtobotoBackend.DefaultApi | postDislike | POST /user/dislike | OtobotoBackend.DefaultApi | postFbUser | POST /user/fb | OtobotoBackend.DefaultApi | postLike | POST /user/like | OtobotoBackend.DefaultApi | postUserBotFb | POST /user/bot/fb | OtobotoBackend.DefaultApi | postUserExcludes | POST /user/exclude | OtobotoBackend.DefaultApi | postUserSearchParams | POST /user/search |
Documentation for Models
- OtobotoBackend.Car
- OtobotoBackend.CarArray
- OtobotoBackend.CarLocation
- OtobotoBackend.CarLocationGeolocation
- OtobotoBackend.ErrorResponse
- OtobotoBackend.Exclude
- OtobotoBackend.ExcludeResponse
- OtobotoBackend.FbToken
- OtobotoBackend.Fbid
- OtobotoBackend.HelloWorldResponse
- OtobotoBackend.Item
- OtobotoBackend.PrefsResponse
- OtobotoBackend.SearchParams
- OtobotoBackend.State
- OtobotoBackend.StatsResponse
- OtobotoBackend.Threshold
- OtobotoBackend.Token
- OtobotoBackend.TokenResponse
- OtobotoBackend.User
- OtobotoBackend.UserExcludes
- OtobotoBackend.UserQueries
Documentation for Authorization
oauth2
- Type: OAuth
- Flow: implicit
- Authorization URL: graph.facebook.com/debug_token
- Scopes:
- read: Grants read access
- write: Grants write access