All URIs are relative to /api
Method | HTTP request | Description |
---|---|---|
channelsCreate | POST /channels/ | |
channelsDelete | DELETE /channels/{id}/ | |
channelsList | GET /channels/ | |
channelsPartialUpdate | PATCH /channels/{id}/ | |
channelsRead | GET /channels/{id}/ | |
channelsUpdate | PUT /channels/{id}/ |
Channel channelsCreate(data)
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.ChannelsApi();
let data = new SmallEodClient.Channel(); // Channel |
apiInstance.channelsCreate(data).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
data | Channel |
- Content-Type: application/json
- Accept: application/json
channelsDelete(id)
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.ChannelsApi();
let id = 56; // Number | A unique integer value identifying this channel.
apiInstance.channelsDelete(id).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number | A unique integer value identifying this channel. |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
InlineResponse20014 channelsList(opts)
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.ChannelsApi();
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.channelsList(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
Channel channelsPartialUpdate(id, data)
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.ChannelsApi();
let id = 56; // Number | A unique integer value identifying this channel.
let data = new SmallEodClient.Channel(); // Channel |
apiInstance.channelsPartialUpdate(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 channel. | |
data | Channel |
- Content-Type: application/json
- Accept: application/json
Channel channelsRead(id)
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.ChannelsApi();
let id = 56; // Number | A unique integer value identifying this channel.
apiInstance.channelsRead(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 channel. |
- Content-Type: Not defined
- Accept: application/json
Channel channelsUpdate(id, data)
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.ChannelsApi();
let id = 56; // Number | A unique integer value identifying this channel.
let data = new SmallEodClient.Channel(); // Channel |
apiInstance.channelsUpdate(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 channel. | |
data | Channel |
- Content-Type: application/json
- Accept: application/json