npm package: @mobieve/mobieve-sdk-js
Description: Mobieve SDK for Javascript Clients
Author: Tainan Fidelis
Latest version: 0.1.0

# mobieve-sdk-js

MobieveSdkJs - JavaScript client for mobieve-sdk-js
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 2019-12-11T20:25:45Z
- Package version: 0.1.0
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen

## Installation

### For [Node.js](https://nodejs.org/)

#### npm

To publish the library as a [npm](https://www.npmjs.com/),
please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.com/getting-started/publishing-npm-packages).

Then install it via:

```shell
npm install mobieve-sdk-js --save
```

#### git
#
If the library is hosted at a git repository, e.g.
https://github.com/mobieve/mobieve-sdk-js
then install it via:

```shell
    npm install mobieve/mobieve-sdk-js --save
```

### For browser

The library also works in the browser environment via npm and [browserify](http://browserify.org/). 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):

```shell
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:

```javascript
module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}
```

## Getting Started

Please follow the [installation](#installation) instruction and execute the following JS code:

```javascript
var MobieveSdkJs = require('mobieve-sdk-js');

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

var api = new MobieveSdkJs.AuthApi()
var api = new MobieveSdkJs.Api(); // {Api} 
api.createApi(api).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});


```

## Documentation for API Endpoints

All URIs are relative to *https://0lp2wd09yb.execute-api.sa-east-1.amazonaws.com/ngrok*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*MobieveSdkJs.AuthApi* | [**createApi**](docs/AuthApi.md#createApi) | **POST** /apis | 
*MobieveSdkJs.AuthApi* | [**createClient**](docs/AuthApi.md#createClient) | **POST** /clients | 
*MobieveSdkJs.AuthApi* | [**createPermission**](docs/AuthApi.md#createPermission) | **POST** /permissions | 
*MobieveSdkJs.AuthApi* | [**createRole**](docs/AuthApi.md#createRole) | **POST** /roles | 
*MobieveSdkJs.AuthApi* | [**createRoleUser**](docs/AuthApi.md#createRoleUser) | **POST** /role-users | 
*MobieveSdkJs.AuthApi* | [**createTeam**](docs/AuthApi.md#createTeam) | **POST** /teams | 
*MobieveSdkJs.AuthApi* | [**createTeamUser**](docs/AuthApi.md#createTeamUser) | **POST** /team-users | 
*MobieveSdkJs.AuthApi* | [**deletePermission**](docs/AuthApi.md#deletePermission) | **DELETE** /permissions/{id} | 
*MobieveSdkJs.AuthApi* | [**deleteRoleUser**](docs/AuthApi.md#deleteRoleUser) | **DELETE** /role-users | 
*MobieveSdkJs.AuthApi* | [**deleteTeam**](docs/AuthApi.md#deleteTeam) | **DELETE** /teams/{id} | 
*MobieveSdkJs.AuthApi* | [**deleteTeamUser**](docs/AuthApi.md#deleteTeamUser) | **DELETE** /team-users | 
*MobieveSdkJs.AuthApi* | [**getApi**](docs/AuthApi.md#getApi) | **GET** /apis/{id} | 
*MobieveSdkJs.AuthApi* | [**getApis**](docs/AuthApi.md#getApis) | **GET** /apis | 
*MobieveSdkJs.AuthApi* | [**getClients**](docs/AuthApi.md#getClients) | **GET** /clients | 
*MobieveSdkJs.AuthApi* | [**getPermissions**](docs/AuthApi.md#getPermissions) | **GET** /permissions | 
*MobieveSdkJs.AuthApi* | [**getRole**](docs/AuthApi.md#getRole) | **GET** /roles/{id} | 
*MobieveSdkJs.AuthApi* | [**getRoles**](docs/AuthApi.md#getRoles) | **GET** /roles | 
*MobieveSdkJs.AuthApi* | [**getTeam**](docs/AuthApi.md#getTeam) | **GET** /teams/{id} | 
*MobieveSdkJs.AuthApi* | [**getTeams**](docs/AuthApi.md#getTeams) | **GET** /teams | 
*MobieveSdkJs.AuthApi* | [**getUser**](docs/AuthApi.md#getUser) | **GET** /users/{id} | 
*MobieveSdkJs.AuthApi* | [**getUsers**](docs/AuthApi.md#getUsers) | **GET** /users | 
*MobieveSdkJs.AuthApi* | [**login**](docs/AuthApi.md#login) | **POST** /login | 
*MobieveSdkJs.AuthApi* | [**logout**](docs/AuthApi.md#logout) | **POST** /logout | 
*MobieveSdkJs.AuthApi* | [**updateApi**](docs/AuthApi.md#updateApi) | **POST** /apis/{id} | 
*MobieveSdkJs.AuthApi* | [**updateClient**](docs/AuthApi.md#updateClient) | **PUT** /clients/{id} | 
*MobieveSdkJs.AuthApi* | [**updateRole**](docs/AuthApi.md#updateRole) | **POST** /roles/{id} | 
*MobieveSdkJs.AuthApi* | [**updateTeam**](docs/AuthApi.md#updateTeam) | **POST** /teams/{id} | 
*MobieveSdkJs.AuthApi* | [**updateUser**](docs/AuthApi.md#updateUser) | **POST** /users/{id} | 


## Documentation for Models

 - [MobieveSdkJs.Api](docs/Api.md)
 - [MobieveSdkJs.ArrayOfObjects](docs/ArrayOfObjects.md)
 - [MobieveSdkJs.Client](docs/Client.md)
 - [MobieveSdkJs.Empty](docs/Empty.md)
 - [MobieveSdkJs.Permission](docs/Permission.md)
 - [MobieveSdkJs.Role](docs/Role.md)
 - [MobieveSdkJs.RoleUser](docs/RoleUser.md)
 - [MobieveSdkJs.Team](docs/Team.md)
 - [MobieveSdkJs.TeamUser](docs/TeamUser.md)
 - [MobieveSdkJs.User](docs/User.md)


## Documentation for Authorization


### BearerToken

- **Type**: API key
- **API key parameter name**: Authorization
- **Location**: HTTP header