All URIs are relative to https://api.dialmycalls.com/2.0
| Method | HTTP request | Description |
|---|---|---|
| cancelTextById | DELETE /service/text/{TextId} | Cancel Text |
| createText | POST /service/text | Create Text |
| deleteIncomingTextById | DELETE /incoming/text/{TextId} | Delete Incoming Text |
| getIncomingTextById | GET /incoming/text/{TextId} | Get Incoming Text |
| getIncomingTexts | GET /incoming/texts | List Incoming Texts |
| getShortCodes | GET /shortcodes | List Shortcodes |
| getTextById | GET /service/text/{TextId} | Get Text |
| getTextRecipientsByTextId | GET /service/text/{TextId}/recipients | Get Text Recipients |
| getTexts | GET /service/texts | List Texts |
Object cancelTextById(textId)
Cancel Text
Cancel an outgoing text.
Returns the following if a valid identifier was provided, and returns an error otherwise.
curl -i -H "Content-Type: application/json" -X DELETE https://$API_KEY@api.dialmycalls.com/2.0/service/text/$TEXT_ID
var DialmycallsJsClient = require('dialmycalls-js-client');
var defaultClient = DialmycallsJsClient.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
var apiInstance = new DialmycallsJsClient.Texts();
var textId = "textId_example"; // String | TextId
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.cancelTextById(textId, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| textId | String | TextId |
Object
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
Object createText(createTextParameters)
Create Text
Create an outgoing text broadcast.
Returns a service object on success, and returns an error otherwise.
curl -i -H "Content-Type: application/json" -X POST -d "{\"keyword_id\": \"dfe49537-a0a8-4f4a-98a1-e03df388af11\", \"send_immediately\": true,\"messages\": [\"Testing testing\"], \"contacts\": [{\"phone\":\"1116551235\"},{\"phone\":\"1116551234\"}]}" https://$API_KEY@api.dialmycalls.com/2.0/service/text
var DialmycallsJsClient = require('dialmycalls-js-client');
var defaultClient = DialmycallsJsClient.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
var apiInstance = new DialmycallsJsClient.Texts();
var createTextParameters = new DialmycallsJsClient.CreateTextParameters(); // CreateTextParameters | Request body
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.createText(createTextParameters, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| createTextParameters | CreateTextParameters | Request body |
Object
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
Object deleteIncomingTextById(textId)
Delete Incoming Text
Delete a incoming text.
Returns the following if a valid identifier was provided, and returns an error otherwise.
curl -i -H "Content-Type: application/json" -X DELETE https://$API_KEY@api.dialmycalls.com/2.0/incoming/text/$TEXT_ID
var DialmycallsJsClient = require('dialmycalls-js-client');
var defaultClient = DialmycallsJsClient.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
var apiInstance = new DialmycallsJsClient.Texts();
var textId = "textId_example"; // String | TextId
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.deleteIncomingTextById(textId, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| textId | String | TextId |
Object
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
Object getIncomingTextById(textId)
Get Incoming Text
Retrieve a text.
Returns a Incoming Text object if a valid identifier was provided, and returns an error otherwise.
curl -i -H "Content-Type: application/json" -X GET https://$API_KEY@api.dialmycalls.com/2.0/incoming/text/$TEXT_ID
var DialmycallsJsClient = require('dialmycalls-js-client');
var defaultClient = DialmycallsJsClient.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
var apiInstance = new DialmycallsJsClient.Texts();
var textId = "textId_example"; // String | TextId
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getIncomingTextById(textId, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| textId | String | TextId |
Object
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
Object getIncomingTexts(opts)
List Incoming Texts
Retrieve a list of texts.
Returns a list of Incoming Text objects.
curl -i -H "Content-Type: application/json" -X GET https://$API_KEY@api.dialmycalls.com/2.0/incoming/texts
var DialmycallsJsClient = require('dialmycalls-js-client');
var defaultClient = DialmycallsJsClient.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
var apiInstance = new DialmycallsJsClient.Texts();
var opts = {
'range': "range_example" // String | Range (ie \"records=201-300\") of texts requested
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getIncomingTexts(opts, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| range | String | Range (ie "records=201-300") of texts requested | [optional] |
Object
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
Object getShortCodes(opts)
List Shortcodes
Retrieve a list of shortcodes.
Returns a list of shortcode objects.
curl -i -H "Content-Type: application/json" -X GET https://$API_KEY@api.dialmycalls.com/2.0/shortcodes
var DialmycallsJsClient = require('dialmycalls-js-client');
var defaultClient = DialmycallsJsClient.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
var apiInstance = new DialmycallsJsClient.Texts();
var opts = {
'range': "range_example" // String | Range (ie \"records=201-300\") of shortcodes requested
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getShortCodes(opts, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| range | String | Range (ie "records=201-300") of shortcodes requested | [optional] |
Object
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
Object getTextById(textId)
Get Text
Retrieve a text.
Returns a service object if a valid identifier was provided, and returns an error otherwise.
curl -i -H "Content-Type: application/json" -X GET https://$API_KEY@api.dialmycalls.com/2.0/service/text/$TEXT_ID
var DialmycallsJsClient = require('dialmycalls-js-client');
var defaultClient = DialmycallsJsClient.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
var apiInstance = new DialmycallsJsClient.Texts();
var textId = "textId_example"; // String | TextId
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getTextById(textId, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| textId | String | TextId |
Object
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
Object getTextRecipientsByTextId(textId, opts)
Get Text Recipients
Retrieve a list of a text's recipients.
Returns a list of text recipient objects if a valid identifier was provided, and returns an error otherwise.
curl -i -H "Content-Type: application/json" -X GET https://$API_KEY@api.dialmycalls.com/2.0/service/text/$TEXT_ID/recipients
var DialmycallsJsClient = require('dialmycalls-js-client');
var defaultClient = DialmycallsJsClient.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
var apiInstance = new DialmycallsJsClient.Texts();
var textId = "textId_example"; // String | TextId
var opts = {
'range': "range_example" // String | Range (ie \"records=201-300\") of recipients requested
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getTextRecipientsByTextId(textId, opts, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| textId | String | TextId | |
| range | String | Range (ie "records=201-300") of recipients requested | [optional] |
Object
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
Object getTexts(opts)
List Texts
Retrieve a list of texts.
Returns a list of service objects.
curl -i -H "Content-Type: application/json" -X GET https://$API_KEY@api.dialmycalls.com/2.0/service/texts
var DialmycallsJsClient = require('dialmycalls-js-client');
var defaultClient = DialmycallsJsClient.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
var apiInstance = new DialmycallsJsClient.Texts();
var opts = {
'range': "range_example" // String | Range (ie \"records=201-300\") of texts requested
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getTexts(opts, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| range | String | Range (ie "records=201-300") of texts requested | [optional] |
Object
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml