1.0.1 • Published 4 years ago

@menadevs/tilde-api v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

api_v1

ApiV1 - JavaScript client for api_v1 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: v1
  • Package version: v1
  • Build package: io.swagger.codegen.v3.generators.javascript.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_v1 --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.

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 ApiV1 = require('api_v1');
var defaultClient = ApiV1.ApiClient.instance;

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

var api = new ApiV1.InvitationsApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.apiV1InvitationsGet(callback);

Documentation for API Endpoints

All URIs are relative to https://menadevs.com/api/v1/

ClassMethodHTTP requestDescription
ApiV1.InvitationsApiapiV1InvitationsGetGET /api/v1/invitationsInvitation
ApiV1.InvitationsApicreateNewInvitationPOST /api/v1/invitationsInvitation
ApiV1.JobApiapiV1JobsIdGetGET /api/v1/jobs/{id}Retrieves a job
ApiV1.JobsApiapiV1JobsGetGET /api/v1/jobsAll jobs
ApiV1.UserApiapiV1UsersIdGetGET /api/v1/users/{id}Retrieves a user
ApiV1.UserApiapiV1UsersSearchGetGET /api/v1/users/searchSearches for a user using an incorrect query parameter
ApiV1.UsersApiapiV1UsersGetGET /api/v1/usersAll users

Documentation for Models

Documentation for Authorization

Bearer

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

4 years ago

1.0.0

4 years ago