Api

Contact List

The Contact List API will be used to get, create, update and delete information of Owner.

Get Contact List

Request Method : GET

Endpoint : https://automate.dailymails.org/api/v1/contact/?api_key={api_key}

Parameters

Name

Type

Description

Required

api_key
String
The api key of your account
True

Curl

curl --location --request GET 'https://automate.dailymails.org/api/v1/contact/?api_key=your_api_key' \--data-raw ''

Java

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
Request request = new Request.Builder()
  .url("https://automate.dailymails.org/api/v1/contact/?api_key=your_api_key")
  .method("GET", null)
  .build();
Response response = client.newCall(request).execute();

C#

var client = new RestClient("https://automate.dailymails.org/api/v1/contact/?api_key=your_api_key");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddParameter("text/plain", "",  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Ruby

require "uri"
require "net/http"

url = URI("https://automate.dailymails.org/api/v1/contact/?api_key=your_api_key")

https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true

request = Net::HTTP::Get.new(url)

response = https.request(request)
puts response.read_body

Php

<?php
require_once 'HTTP/Request2.php';
$request = new HTTP_Request2();
$request->setUrl('https://automate.dailymails.org/api/v1/contact/?api_key=your_api_key');
$request->setMethod(HTTP_Request2::METHOD_GET);
$request->setConfig(array(
'follow_redirects' => TRUE
));
$request->setBody('');
try {
$response = $request->send();
if ($response->getStatus() == 200) {
  echo $response->getBody();
}
else {
  echo 'Unexpected HTTP status: ' . $response->getStatus() . ' ' .
  $response->getReasonPhrase();
}
}
catch(HTTP_Request2_Exception $e) {
echo 'Error: ' . $e->getMessage();
}

Python

import requests

url = "https://automate.dailymails.org/api/v1/contact/?api_key=your_api_key"

payload={}
headers = {}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)

Nodejs

var https = require('follow-redirects').https;
var fs = require('fs');

var options = {
  'method': 'GET',
  'hostname': 'automate.dailymails.org',
  'path': '/api/v1/contact/?api_key=your_api_key',
  'headers': {
  },
  'maxRedirects': 20
};

var req = https.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function (chunk) {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });

  res.on("error", function (error) {
    console.error(error);
  });
});

req.end();

Delete Contact List

Request Method : DELETE

Endpoint : https://automate.dailymails.org/api/v1/contact/{id}/?api_key={api_key}

Parameters

Name

Type

Description

Required

api_key
String
The api key of your account
True
id
String
contact id which will be delete
True

Curl

curl --location --request DELETE 'https://automate.dailymails.org/api/v1/contact/54/?api_key=your_api_key' \--data-raw ''

C#

var client = new RestClient("https://automate.dailymails.org/api/v1/contact/54/?api_key=your_api_key");
client.Timeout = -1;
var request = new RestRequest(Method.DELETE);
request.AddParameter("text/plain", "",  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Ruby

require "uri"
require "net/http"

url = URI("https://automate.dailymails.org/api/v1/contact/54/?api_key=your_api_key")

https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = https.request(request)
puts response.read_body

Java

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
  .url("https://automate.dailymails.org/api/v1/contact/54/?api_key=your_api_key")
  .method("DELETE", body)
  .build();
Response response = client.newCall(request).execute();

Php

<?php
require_once 'HTTP/Request2.php';
$request = new HTTP_Request2();
$request->setUrl('https://automate.dailymails.org/api/v1/contact/54/?api_key=your_api_key');
$request->setMethod(HTTP_Request2::METHOD_DELETE);
$request->setConfig(array(
  'follow_redirects' => TRUE
));
$request->setBody('');
try {
  $response = $request->send();
  if ($response->getStatus() == 200) {
    echo $response->getBody();
  }
  else {
    echo 'Unexpected HTTP status: ' . $response->getStatus() . ' ' .
    $response->getReasonPhrase();
  }
}
catch(HTTP_Request2_Exception $e) {
  echo 'Error: ' . $e->getMessage();
}

Python

import requests

url = "https://automate.dailymails.org/api/v1/contact/54/?api_key=your_api_key"

payload={}
headers = {}

response = requests.request("DELETE", url, headers=headers, data=payload)

print(response.text)

Nodejs

var https = require('follow-redirects').https;
var fs = require('fs');

var options = {
  'method': 'DELETE',
  'hostname': 'automate.dailymails.org',
  'path': '/api/v1/contact/54/?api_key=your_api_key',
  'headers': {
  },
  'maxRedirects': 20
};

var req = https.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function (chunk) {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });

  res.on("error", function (error) {
    console.error(error);
  });
});

req.end();

Get Contact List Details

Request Method : GET

Endpoint : https://automate.dailymails.org/api/v1/contact/{id}/?api_key={api_key}

Parameters

Name

Type

Description

Required

api_key
String
The api key of your account
True
id
String
The contact id of your account
True

Api Results

Name

Result

status
success|fail
id
Re-direct to api url.
error
(if status was fail) describes why the query failed,
Contact id is not correct.
User authentication failed. Wrong API Key.

Curl

curl --location --request GET 'https://automate.dailymails.org/api/v1/contact/54/?api_key=your_api_key' \--data-raw ''

Java

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
Request request = new Request.Builder()
  .url("https://automate.dailymails.org/api/v1/contact/54/?api_key=your_api_key")
  .method("GET", null)
  .build();
Response response = client.newCall(request).execute();

Php

<?php
require_once 'HTTP/Request2.php';
$request = new HTTP_Request2();
$request->setUrl('https://automate.dailymails.org/api/v1/contact/54/?api_key=your_api_key');
$request->setMethod(HTTP_Request2::METHOD_GET);
$request->setConfig(array(
  'follow_redirects' => TRUE
));
$request->setBody('');
try {
  $response = $request->send();
  if ($response->getStatus() == 200) {
    echo $response->getBody();
  }
  else {
    echo 'Unexpected HTTP status: ' . $response->getStatus() . ' ' .
    $response->getReasonPhrase();
  }
}
catch(HTTP_Request2_Exception $e) {
  echo 'Error: ' . $e->getMessage();
}

Python

import requests

url = "https://automate.dailymails.org/api/v1/contact/54/?api_key=your_api_key"

payload={}
headers = {}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)

Nodejs

var https = require('follow-redirects').https;
var fs = require('fs');

var options = {
  'method': 'GET',
  'hostname': 'automate.dailymails.org',
  'path': '/api/v1/contact/54/?api_key=your_api_key',
  'headers': {
  },
  'maxRedirects': 20
};

var req = https.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function (chunk) {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });

  res.on("error", function (error) {
    console.error(error);
  });
});

req.end();

Create Contact List

Request Method : POST

Endpoint : https://automate.dailymails.org/api/v1/contact/?api_key={api_key}

Parameters

Name

Type

Description

Required

name
String
Enter the Contact list Name
True
is_email
Boolean
Enter True/False
True
is_push
Boolean
Enter True/False
False
is_sms
Boolean
Enter True/False
False
app_id
Boolean
Enter True/False
False
emaillist
List
Enter in the emaillist you must enter data in the dict format-[{“key”:”value”}]
True
email
String
Enter Email ID
True
customer_name
String
Enter Customer Name
True
mobile
String
Enter Mobile No
True
sex
String
Enter The Gender
False
age
String
Enter Age
False
dob
Date Field
Enter The Date of Birth
False
ip_address
String
Enter The Ip Address
False
city
String
Enter City Name
False
country
String
Select the Country Name
False
sms
Boolean
Enter The True/False
False
whatsapp
Boolean
Enter The True/False
False
dndphone
Boolean
Enter The True/False
False
device_id
Boolean
Enter The True/False
False
customer_type
Integer
Select The 0/1
False
isemail
Boolean
Enter The True/False
False
webpush_status
Boolean
Enter The True/False
False
bounsestatus
Integer
Default(0)
False
validation_status
Integer
Default(0)
False

Api Results

Name

Result

status
success|fail
error
(if status was fail) describes why the query failed,
Required parameter missing or invalid.

Request body

{
"name":"contact name",
"is_email":true,
"is_push":false,
"is_sms":true,
"app_id": "",
"emaillist":[
{
    "email":"demo@gmail.com",
    "customer_name":"demo",
    "mobile":918707337040,
    "sex":"M",
    "age":22,
    "dob" : "16-10-1996",
    "marriage_date":"22-10-2020",
    "ip_address":"xy",
    "isemail":true,
    "webpush_status":true,
    "sms":true,
    "whatsapp":true,
    "device_id":"asasa1",
    "customer_type":1
},
{
    "email":"demo1@gmail.com",
    "customer_name":"demo1",
    "mobile":918705557040,
    "sex":"M",
    "age":22,
    "dob" : "16-10-1996",
    "marriage_date":"22-10-2020",
    "ip_address":"xy",
    "isemail":true,
    "webpush_status":true,
    "sms":true,
    "whatsapp":true,
    "device_id":"asasa1",
    "customer_type":1
    }
    ]
    }

Curl

  curl --location --request POST 'https://automate.dailymails.org/api/v1/contact/?api_key=your_api_key' \
--header 'Content-Type: application/json' \
--data-raw '{
  "name":"demo_contact_list",
  "is_email":"true",
  "is_push":"true",
  "is_sms":"true",
    "app_id": "",
  "emaillist":[
      {
        "email":"demo@gmail.com",
        "customer_name":"demo",
        "mobile":918704785040,
        "sex":"M",
        "age":22,
        "dob" : "16-10-1996",
        "marriage_date":"22-10-2020",
        "ip_address":"xy",
        "isemail":"true",
        "webpush_status":"true",
        "sms":"true",
        "whatsapp":"true",
        "device_id":"asasa1",
        "customer_type":1,
        "tags":[

        ],
        "attributes":{

        }
      }
    ]

}'

Java

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"name\":\"demo_contact_lists\",\"is_email\":\"true\",\"is_push\":\"true\",\"is_sms\":\"true\",\"app_id\":\"\",\"emaillist\":[{\"email\":\"demo@gmail.com\",\"customer_name\":\"demo\",\r\n\"mobile\":918704785040,\"sex\":\"M\",\"age\":22,\"dob\" : \"16-10-1996\",\"marriage_date\":\"22-10-2020\",\"ip_address\":\"xy\",\"isemail\":\"true\",\"webpush_status\":\"true\",\"sms\":\"true\",\"whatsapp\":\"true\",\"device_id\":\"asasa1\",\"customer_type\":1,\"tags\":[],\"attributes\":{}}]}");
Request request = new Request.Builder()
  .url("https://automate.dailymails.org/api/v1/contact/?api_key=your_api_key")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();

Php

<?php
require_once 'HTTP/Request2.php';
$request = new HTTP_Request2();
$request->setUrl('https://automate.dailymails.org/api/v1/contact/?api_key=your_api_key');
$request->setMethod(HTTP_Request2::METHOD_POST);
$request->setConfig(array(
  'follow_redirects' => TRUE
));
$request->setHeader(array(
  'Content-Type' => 'application/json'
));
$request->setBody('{"name":"demo_contact_lists","is_email":"true","is_push":"true","is_sms":"true","app_id":"","emaillist":[{"email":"demo@gmail.com","customer_name":"demo",
\n"mobile":918704785040,"sex":"M","age":22,"dob" : "16-10-1996","marriage_date":"22-10-2020","ip_address":"xy","isemail":"true","webpush_status":"true","sms":"true","whatsapp":"true","device_id":"asasa1","customer_type":1,"tags":[],"attributes":{}}]}');
try {
  $response = $request->send();
  if ($response->getStatus() == 200) {
    echo $response->getBody();
  }
  else {
    echo 'Unexpected HTTP status: ' . $response->getStatus() . ' ' .
    $response->getReasonPhrase();
  }
}
catch(HTTP_Request2_Exception $e) {
  echo 'Error: ' . $e->getMessage();
}

Python

import requests

url = "https://automate.dailymails.org/api/v1/contact/?api_key=your_api_key"

payload="{\"name\":\"demo_contact_lists\",\"is_email\":\"true\",\"is_push\":\"true\",\"is_sms\":\"true\",\"app_id\":\"\",\"emaillist\":[{\"email\":\"demo@gmail.com\",\"customer_name\":\"demo\",\r\n\"mobile\":918704785040,\"sex\":\"M\",\"age\":22,\"dob\" : \"16-10-1996\",\"marriage_date\":\"22-10-2020\",\"ip_address\":\"xy\",\"isemail\":\"true\",\"webpush_status\":\"true\",\"sms\":\"true\",\"whatsapp\":\"true\",\"device_id\":\"asasa1\",\"customer_type\":1,\"tags\":[],\"attributes\":{}}]}"
headers = {
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

Nodejs

var https = require('follow-redirects').https;
var fs = require('fs');

var options = {
  'method': 'POST',
  'hostname': 'automate.dailymails.org',
  'path': '/api/v1/contact/?api_key=your_api_key',
  'headers': {
    'Content-Type': 'application/json'
  },
  'maxRedirects': 20
};

var req = https.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function (chunk) {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });

  res.on("error", function (error) {
    console.error(error);
  });
});

var postData = JSON.stringify({"name":"demo_contact_lists","is_email":"true","is_push":"true","is_sms":"true","app_id":"","emaillist":[{"email":"demo@gmail.com","customer_name":"demo","mobile":918704785040,"sex":"M","age":22,"dob":"16-10-1996","marriage_date":"22-10-2020","ip_address":"xy","isemail":"true","webpush_status":"true","sms":"true","whatsapp":"true","device_id":"asasa1","customer_type":1,"tags":[],"attributes":{}}]});

req.write(postData);

req.end();

Update Contact List

Request Method : PUT

Endpoint : https://automate.dailymails.org/api/v1/contact/{id}/?api_key={api_key}

Content-Type : application/x-www-form-urlencoded

Parameters

Name

Type

Description

Required

api_key
String
The api key of your account
True
id
String
The contact id of your account
True
contact
Integer
Enter contact id to update data
True
data
List
All the data in this format- [{“key”:”Value”}]
True
uuid
String
Enter UUID (which data update)
True
email
String
Enter Email ID
True
customer_name
String
ENter Customer Name
True
mobile
String
Enter Mobile No
True
sex
String
Enter The Gender
False
age
String
Enter Age
False
dob
Date Field
Enter The Date of Birth
False
ip_address
String
Enter The Ip Address
False
city
String
Enter City Name
False
country
String
Select the Country Name
False
sms
Boolean
Enter The True/False
False
whatsapp
Boolean
Enter The True/False
False
dndphone
Boolean
Enter The True/False
False
device_id
Boolean
Enter The True/False
False
customertype
Integer
Select The 0/1
False
isemail
Boolean
Enter The True/False
False
webpush_status
Boolean
Enter The True/False
False
bounsestatus
Integer
Default(0)
False
validation_status
Integer
Default(0)
False

Api Results

Name

Result

status
success|fail
message
Send|Queued
error
(if status was fail) describes why the query failed,
Required parameter missing or invalid.
User authentication failed. Wrong API Key.

Request Body

{
 "contact": 8,
 "data":[
 {
 "uuid": "47f07af5-cafe-4ee6-8a18-19b73f82f554",
 "email": "mananjaykannaujia@gmail.com",
 "customer_name": "Mananjay",
 "mobile": 918707457040,
 "sex": "M",
 "age": 22,
 "dob": "1996-10-16T00:00:00",
 "ip_address": "xy",
 "city": "cccc",
 "country": "cccccccccccccc",
 "bounsestatus": 0,
 "validation_status": 0,
 "isemail": true,
 "webpush_status": true,
 "marriage_date": "2020-10-22T00:00:00",
 "sms": true,
 "whatsapp": true,
 "dndphone": false,
 "device_id": "asasa1",
 "customer_type": 1
 }
 ]
 }

Curl

curl --location --request PUT 'https://automate.dailymails.org/api/v1/contact/70/?api_key=your_api_key' \
--header 'Content-Type: application/json' \
--data-raw '{
"contact": 70,
"data":[
{
  "uuid": "928932e3-0b1f-4c62-b883-6cfa3e5d78af",
  "email": "user1@yahoo.com",
  "customer_name": "Customer",
  "mobile": 918702587040,
  "sex": "M",
  "age": 22,
  "dob": "1996-10-16T00:00:00",
  "ip_address": "xy",
  "city": "cccc",
  "country": "cccccccccccccc",
  "bounsestatus": 0,
  "validation_status": 0,
  "isemail": true,
  "webpush_status": true,
  "marriage_date": "2020-10-22T00:00:00",
  "sms": true,
  "whatsapp": true,
  "dndphone": false,
  "device_id": "asasa1",
  "customer_type": 1

}
]
}'

Java

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\r\n\"contact\": 70,\r\n\"data\":[\r\n{\r\n\t\"uuid\": \"928932e3-0b1f-4c62-b883-6cfa3e5d78af\",\r\n\t\"email\": \"user1@yahoo.com\",\r\n\t\"customer_name\": \"Customer\",\r\n\t\"mobile\": 918702587040,\r\n\t\"sex\": \"M\",\r\n\t\"age\": 22,\r\n\t\"dob\": \"1996-10-16T00:00:00\",\r\n\t\"ip_address\": \"xy\",\r\n\t\"city\": \"cccc\",\r\n\t\"country\": \"cccccccccccccc\",\r\n\t\"bounsestatus\": 0,\r\n\t\"validation_status\": 0,\r\n\t\"isemail\": true,\r\n\t\"webpush_status\": true,\r\n\t\"marriage_date\": \"2020-10-22T00:00:00\",\r\n\t\"sms\": true,\r\n\t\"whatsapp\": true,\r\n\t\"dndphone\": false,\r\n\t\"device_id\": \"asasa1\",\r\n\t\"customer_type\": 1\r\n\r\n}\r\n]\r\n}");
Request request = new Request.Builder()
  .url("https://automate.dailymails.org/api/v1/contact/70/?api_key=your_api_key")
  .method("PUT", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();

Php

<?php
require_once 'HTTP/Request2.php';
$request = new HTTP_Request2();
$request->setUrl('https://automate.dailymails.org/api/v1/contact/70/?api_key=your_api_key');
$request->setMethod(HTTP_Request2::METHOD_PUT);
$request->setConfig(array(
  'follow_redirects' => TRUE
));
$request->setHeader(array(
  'Content-Type' => 'application/json'
));
$request->setBody('{
\n"contact": 70,
\n"data":[
\n{
\n      "uuid": "928932e3-0b1f-4c62-b883-6cfa3e5d78af",
\n      "email": "user1@yahoo.com",
\n      "customer_name": "Customer",
\n      "mobile": 918702587040,
\n      "sex": "M",
\n      "age": 22,
\n      "dob": "1996-10-16T00:00:00",
\n      "ip_address": "xy",
\n      "city": "cccc",
\n      "country": "cccccccccccccc",
\n      "bounsestatus": 0,
\n      "validation_status": 0,
\n      "isemail": true,
\n      "webpush_status": true,
\n      "marriage_date": "2020-10-22T00:00:00",
\n      "sms": true,
\n      "whatsapp": true,
\n      "dndphone": false,
\n      "device_id": "asasa1",
\n      "customer_type": 1
\n
\n}
\n]
\n}');
try {
  $response = $request->send();
  if ($response->getStatus() == 200) {
    echo $response->getBody();
  }
  else {
    echo 'Unexpected HTTP status: ' . $response->getStatus() . ' ' .
    $response->getReasonPhrase();
  }
}
catch(HTTP_Request2_Exception $e) {
  echo 'Error: ' . $e->getMessage();
}

Python

import requests

url = "https://automate.dailymails.org/api/v1/contact/70/?api_key=your_api_key"

payload="{\r\n\"contact\": 70,\r\n\"data\":[\r\n{\r\n\t\"uuid\": \"928932e3-0b1f-4c62-b883-6cfa3e5d78af\",\r\n\t\"email\": \"user1@yahoo.com\",\r\n\t\"customer_name\": \"Customer\",\r\n\t\"mobile\": 918702587040,\r\n\t\"sex\": \"M\",\r\n\t\"age\": 22,\r\n\t\"dob\": \"1996-10-16T00:00:00\",\r\n\t\"ip_address\": \"xy\",\r\n\t\"city\": \"cccc\",\r\n\t\"country\": \"cccccccccccccc\",\r\n\t\"bounsestatus\": 0,\r\n\t\"validation_status\": 0,\r\n\t\"isemail\": true,\r\n\t\"webpush_status\": true,\r\n\t\"marriage_date\": \"2020-10-22T00:00:00\",\r\n\t\"sms\": true,\r\n\t\"whatsapp\": true,\r\n\t\"dndphone\": false,\r\n\t\"device_id\": \"asasa1\",\r\n\t\"customer_type\": 1\r\n\r\n}\r\n]\r\n}"
headers = {
  'Content-Type': 'application/json'
}

response = requests.request("PUT", url, headers=headers, data=payload)

print(response.text)

Nodejs

var https = require('follow-redirects').https;
var fs = require('fs');

var options = {
  'method': 'PUT',
  'hostname': 'automate.dailymails.org',
  'path': '/api/v1/contact/70/?api_key=your_api_key',
  'headers': {
    'Content-Type': 'application/json'
  },
  'maxRedirects': 20
};

var req = https.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function (chunk) {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });

  res.on("error", function (error) {
    console.error(error);
  });
});

var postData = JSON.stringify({"contact":70,"data":[{"uuid":"928932e3-0b1f-4c62-b883-6cfa3e5d78af","email":"user1@yahoo.com","customer_name":"Customer","mobile":918702587040,"sex":"M","age":22,"dob":"1996-10-16T00:00:00","ip_address":"xy","city":"cccc","country":"cccccccccccccc","bounsestatus":0,"validation_status":0,"isemail":true,"webpush_status":true,"marriage_date":"2020-10-22T00:00:00","sms":true,"whatsapp":true,"dndphone":false,"device_id":"asasa1","customer_type":1}]});

req.write(postData);

req.end();