All URIs are relative to https://backend.id4i.de
| Method | HTTP request | Description |
|---|---|---|
| enqueueCustomMessage | POST /api/v1/organizations/{organizationId}/messaging/enqueueCustomMessage | Enqueue a custom message |
| getDefaultQueue | GET /api/v1/organizations/{organizationId}/messaging | |
| patchDefaultQueue | PATCH /api/v1/organizations/{organizationId}/messaging |
enqueueCustomMessage(organizationId, request)
Enqueue a custom message
Enqueue a custom organisation message with custom data.
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.MessagingApi();
var organizationId = "organizationId_example"; // String | The organisation namespace
var request = new Id4iApi.SendCustomMessage(); // SendCustomMessage | request
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.enqueueCustomMessage(organizationId, request, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | String | The organisation namespace | |
| request | SendCustomMessage | request |
null (empty response body)
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
QueuePresentation getDefaultQueue(organizationId)
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.MessagingApi();
var organizationId = "organizationId_example"; // String | organizationId
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getDefaultQueue(organizationId, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | String | organizationId |
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
patchDefaultQueue(organizationId, request)
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.MessagingApi();
var organizationId = "organizationId_example"; // String | organizationId
var request = new Id4iApi.QueueUpdateRequest(); // QueueUpdateRequest | request
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.patchDefaultQueue(organizationId, request, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | String | organizationId | |
| request | QueueUpdateRequest | request |
null (empty response body)
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json