GetSubscriber
Get information about a subscriber.
URL | https://api.enginemailer.com/restapi/subscriber/emsubscriber/getSubscriber?{email} |
Method | HTTP GET with Query String |
Request Example
Header
<APIKEY> - Value
Response
Success Response
{
"Result": {
"Status": "OK",
"StatusCode": "200",
"Data": {
"SubscriberID": 12345,
"Email": "imported_test12345@test.com",
"Status": "Active",
"first_name": "Test",
"last_name": "Test",
"unique_id": "10",
"description": "This is for test",
"no_of_kids": "1",
"birthday": "01 Oct 2020",
"mobile_phone": "+60123456789",
"home_address": "",
"gender": "Female",
"interest": [
"Cooking",
"Hiking",
"Reading"
]
}
}
}
Failed Response
{
"Result":{
"StatusCode":"500",
"Status":"InternalServerError",
"ErrorMessage":"Authentication Failed!"
}
}
Code Example (.NET)
var client = new RestClient("http://api.enginemailer.com/RESTAPI/subscriber/emsubscriber/getSubscriber?email=example@enginemailer.com");
var request = new RestRequest(Method.GET);
request.AddHeader("APIKey", "<>");
var response = client.Execute(request).Content;
var response2 = JObject.Parse(response);