All URIs are relative to /api
Method | HTTP request | Description |
---|---|---|
usersAuth | GET /users/auth/ | |
usersCreate | POST /users/ | |
usersDelete | DELETE /users/{id}/ | |
usersExchange | GET /users/exchange/ | |
usersList | GET /users/ | |
usersPartialUpdate | PATCH /users/{id}/ | |
usersRead | GET /users/{id}/ | |
usersRefresh | POST /users/refresh/ | |
usersUpdate | PUT /users/{id}/ |
Request usersAuth(opts)
API endpoint to receive URI for OAuth authorization url
import SmallEodClient from 'small_eod_client';
let defaultClient = SmallEodClient.ApiClient.instance;
// Configure HTTP basic authorization: Basic
let Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME';
Basic.password = 'YOUR PASSWORD';
// Configure API key authorization: Bearer
let 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 = 'Token';
let apiInstance = new SmallEodClient.UsersApi();
let opts = {
'query': "query_example", // String |
'ordering': "ordering_example", // String | Which field to use when ordering the results.
'limit': 56, // Number | Number of results to return per page.
'offset': 56 // Number | The initial index from which to return the results.
};
apiInstance.usersAuth(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
query | String | [optional] | |
ordering | String | Which field to use when ordering the results. | [optional] |
limit | Number | Number of results to return per page. | [optional] |
offset | Number | The initial index from which to return the results. | [optional] |
- Content-Type: Not defined
- Accept: application/json
User usersCreate(data)
API endpoint that allows users to be viewed or edited.
import SmallEodClient from 'small_eod_client';
let defaultClient = SmallEodClient.ApiClient.instance;
// Configure HTTP basic authorization: Basic
let Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME';
Basic.password = 'YOUR PASSWORD';
// Configure API key authorization: Bearer
let 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 = 'Token';
let apiInstance = new SmallEodClient.UsersApi();
let data = new SmallEodClient.User(); // User |
apiInstance.usersCreate(data).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
data | User |
- Content-Type: application/json
- Accept: application/json
usersDelete(id)
API endpoint that allows users to be viewed or edited.
import SmallEodClient from 'small_eod_client';
let defaultClient = SmallEodClient.ApiClient.instance;
// Configure HTTP basic authorization: Basic
let Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME';
Basic.password = 'YOUR PASSWORD';
// Configure API key authorization: Bearer
let 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 = 'Token';
let apiInstance = new SmallEodClient.UsersApi();
let id = 56; // Number | A unique integer value identifying this user.
apiInstance.usersDelete(id).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number | A unique integer value identifying this user. |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
TokenResponse usersExchange(opts)
API endpoint to exchange authorization code to access token
import SmallEodClient from 'small_eod_client';
let defaultClient = SmallEodClient.ApiClient.instance;
// Configure HTTP basic authorization: Basic
let Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME';
Basic.password = 'YOUR PASSWORD';
// Configure API key authorization: Bearer
let 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 = 'Token';
let apiInstance = new SmallEodClient.UsersApi();
let opts = {
'query': "query_example", // String |
'ordering': "ordering_example", // String | Which field to use when ordering the results.
'limit': 56, // Number | Number of results to return per page.
'offset': 56, // Number | The initial index from which to return the results.
'authuser': "authuser_example", // String |
'code': "code_example", // String |
'prompt': "prompt_example", // String |
'scope': "scope_example", // String | scope of OAuth consents
'state': "state_example" // String |
};
apiInstance.usersExchange(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
query | String | [optional] | |
ordering | String | Which field to use when ordering the results. | [optional] |
limit | Number | Number of results to return per page. | [optional] |
offset | Number | The initial index from which to return the results. | [optional] |
authuser | String | [optional] | |
code | String | [optional] | |
prompt | String | [optional] | |
scope | String | scope of OAuth consents | [optional] |
state | String | [optional] |
- Content-Type: Not defined
- Accept: application/json
InlineResponse20013 usersList(opts)
API endpoint that allows users to be viewed or edited.
import SmallEodClient from 'small_eod_client';
let defaultClient = SmallEodClient.ApiClient.instance;
// Configure HTTP basic authorization: Basic
let Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME';
Basic.password = 'YOUR PASSWORD';
// Configure API key authorization: Bearer
let 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 = 'Token';
let apiInstance = new SmallEodClient.UsersApi();
let opts = {
'query': "query_example", // String |
'ordering': "ordering_example", // String | Which field to use when ordering the results.
'limit': 56, // Number | Number of results to return per page.
'offset': 56 // Number | The initial index from which to return the results.
};
apiInstance.usersList(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
query | String | [optional] | |
ordering | String | Which field to use when ordering the results. | [optional] |
limit | Number | Number of results to return per page. | [optional] |
offset | Number | The initial index from which to return the results. | [optional] |
- Content-Type: Not defined
- Accept: application/json
User usersPartialUpdate(id, data)
API endpoint that allows users to be viewed or edited.
import SmallEodClient from 'small_eod_client';
let defaultClient = SmallEodClient.ApiClient.instance;
// Configure HTTP basic authorization: Basic
let Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME';
Basic.password = 'YOUR PASSWORD';
// Configure API key authorization: Bearer
let 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 = 'Token';
let apiInstance = new SmallEodClient.UsersApi();
let id = 56; // Number | A unique integer value identifying this user.
let data = new SmallEodClient.User(); // User |
apiInstance.usersPartialUpdate(id, data).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number | A unique integer value identifying this user. | |
data | User |
- Content-Type: application/json
- Accept: application/json
User usersRead(id)
API endpoint that allows users to be viewed or edited.
import SmallEodClient from 'small_eod_client';
let defaultClient = SmallEodClient.ApiClient.instance;
// Configure HTTP basic authorization: Basic
let Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME';
Basic.password = 'YOUR PASSWORD';
// Configure API key authorization: Bearer
let 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 = 'Token';
let apiInstance = new SmallEodClient.UsersApi();
let id = 56; // Number | A unique integer value identifying this user.
apiInstance.usersRead(id).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number | A unique integer value identifying this user. |
- Content-Type: Not defined
- Accept: application/json
TokenResponse usersRefresh(data)
API endpoint to exchange refresh token to fresh access token
import SmallEodClient from 'small_eod_client';
let defaultClient = SmallEodClient.ApiClient.instance;
// Configure HTTP basic authorization: Basic
let Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME';
Basic.password = 'YOUR PASSWORD';
// Configure API key authorization: Bearer
let 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 = 'Token';
let apiInstance = new SmallEodClient.UsersApi();
let data = new SmallEodClient.RefreshTokenRequest(); // RefreshTokenRequest |
apiInstance.usersRefresh(data).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
data | RefreshTokenRequest |
- Content-Type: application/json
- Accept: application/json
User usersUpdate(id, data)
API endpoint that allows users to be viewed or edited.
import SmallEodClient from 'small_eod_client';
let defaultClient = SmallEodClient.ApiClient.instance;
// Configure HTTP basic authorization: Basic
let Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME';
Basic.password = 'YOUR PASSWORD';
// Configure API key authorization: Bearer
let 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 = 'Token';
let apiInstance = new SmallEodClient.UsersApi();
let id = 56; // Number | A unique integer value identifying this user.
let data = new SmallEodClient.User(); // User |
apiInstance.usersUpdate(id, data).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number | A unique integer value identifying this user. | |
data | User |
- Content-Type: application/json
- Accept: application/json