Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 1.68 KB

File metadata and controls

61 lines (41 loc) · 1.68 KB

DialmycallsJsClient.DoNotContacts

All URIs are relative to https://api.dialmycalls.com/2.0

Method HTTP request Description
getDoNotContacts GET /donotcontacts List DoNotContacts

getDoNotContacts

Object getDoNotContacts(opts)

List DoNotContacts

Retrieve a list of donotcontacts.

Returns a list of donotcontact objects.

curl -i -H "Content-Type: application/json" -X GET https://$API_KEY@api.dialmycalls.com/2.0/donotcontacts

Example

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.DoNotContacts();

var opts = { 
  'range': "range_example" // String | Range (ie \"records=201-300\") of donotcontacts requested
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getDoNotContacts(opts, callback);

Parameters

Name Type Description Notes
range String Range (ie "records=201-300") of donotcontacts requested [optional]

Return type

Object

Authorization

api_key

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml