All URIs are relative to /
Method | HTTP request | Description |
---|---|---|
deleteUsingDELETE | DELETE /users-web/api/v3/apps/{anyStateAppId} | delete |
getAppTypesUsingGET | GET /users-web/api/v3/apps/types | Get all App types supported for the account identified with apiKey |
getUsingGET | GET /users-web/api/v3/apps/{anyStateAppId} | Gets defails for one particular App |
inviteAppGuestsUsingPOST1 | POST /users-web/api/v3/apps/guests | Invite guests to an app |
listAppsUsersUsingGET1 | GET /users-web/api/v3/apps/users | Get all users of apps accessible to this account |
listUsingGET | GET /users-web/api/v3/apps | Get all apps accessible by account identified with apiKey |
updateDescriptionUsingPUT1 | PUT /users-web/api/v3/apps/{anyStateAppId}/description | Update description of the app |
updateUsingPUT3 | PUT /users-web/api/v3/apps/{anyStateAppId} | Update app |
GenericMapBasedApiResponse deleteUsingDELETE(anyStateAppId)
delete
import {SematextApiClientJavascript} from 'sematext-api-client-javascript';
let defaultClient = SematextApiClientJavascript.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
let apiInstance = new SematextApiClientJavascript.AppsApi();
let anyStateAppId = 789; // Number | anyStateAppId
apiInstance.deleteUsingDELETE(anyStateAppId).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
anyStateAppId | Number | anyStateAppId |
- Content-Type: Not defined
- Accept: application/json
AppTypesResponse getAppTypesUsingGET()
Get all App types supported for the account identified with apiKey
import {SematextApiClientJavascript} from 'sematext-api-client-javascript';
let defaultClient = SematextApiClientJavascript.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
let apiInstance = new SematextApiClientJavascript.AppsApi();
apiInstance.getAppTypesUsingGET().then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
AppResponse getUsingGET(anyStateAppId)
Gets defails for one particular App
import {SematextApiClientJavascript} from 'sematext-api-client-javascript';
let defaultClient = SematextApiClientJavascript.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
let apiInstance = new SematextApiClientJavascript.AppsApi();
let anyStateAppId = 789; // Number | anyStateAppId
apiInstance.getUsingGET(anyStateAppId).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
anyStateAppId | Number | anyStateAppId |
- Content-Type: Not defined
- Accept: application/json
GenericMapBasedApiResponse inviteAppGuestsUsingPOST1(body)
Invite guests to an app
import {SematextApiClientJavascript} from 'sematext-api-client-javascript';
let defaultClient = SematextApiClientJavascript.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
let apiInstance = new SematextApiClientJavascript.AppsApi();
let body = new SematextApiClientJavascript.Invitation(); // Invitation | For `app` and `apps` fields only `id` needs to be populated.Other fields can be left empty or with default values
apiInstance.inviteAppGuestsUsingPOST1(body).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
body | Invitation | For `app` and `apps` fields only `id` needs to be populated.Other fields can be left empty or with default values |
- Content-Type: application/json
- Accept: application/json
AppsResponse listAppsUsersUsingGET1()
Get all users of apps accessible to this account
import {SematextApiClientJavascript} from 'sematext-api-client-javascript';
let defaultClient = SematextApiClientJavascript.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
let apiInstance = new SematextApiClientJavascript.AppsApi();
apiInstance.listAppsUsersUsingGET1().then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
AppsResponse listUsingGET()
Get all apps accessible by account identified with apiKey
import {SematextApiClientJavascript} from 'sematext-api-client-javascript';
let defaultClient = SematextApiClientJavascript.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
let apiInstance = new SematextApiClientJavascript.AppsApi();
apiInstance.listUsingGET().then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
AppResponse updateDescriptionUsingPUT1(anyStateAppId, opts)
Update description of the app
App can be in any state
import {SematextApiClientJavascript} from 'sematext-api-client-javascript';
let defaultClient = SematextApiClientJavascript.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
let apiInstance = new SematextApiClientJavascript.AppsApi();
let anyStateAppId = 789; // Number | App Id
let opts = {
'body': new SematextApiClientJavascript.AppDescription() // AppDescription | Update Details
};
apiInstance.updateDescriptionUsingPUT1(anyStateAppId, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
anyStateAppId | Number | App Id | |
body | AppDescription | Update Details | [optional] |
- Content-Type: application/json
- Accept: application/json
AppResponse updateUsingPUT3(body, anyStateAppId)
Update app
App can be in any state
import {SematextApiClientJavascript} from 'sematext-api-client-javascript';
let defaultClient = SematextApiClientJavascript.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
let apiInstance = new SematextApiClientJavascript.AppsApi();
let body = new SematextApiClientJavascript.UpdateAppInfo(); // UpdateAppInfo | dto
let anyStateAppId = 789; // Number | App Id
apiInstance.updateUsingPUT3(body, anyStateAppId).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
body | UpdateAppInfo | dto | |
anyStateAppId | Number | App Id |
- Content-Type: application/json
- Accept: application/json