« Back to Documentation Overviewget_campaign_domain
Section: Campaigns
Version: 1.5.0
Check if any account domain is assigned to campaign. Assigned domain will be used in links in messages sent from this campaign.
Parameters
|
---|
string | API_KEY |
object | string | campaign | CAMPAIGN_ID |
|
Return Value
|
---|
object | ACCOUNT_DOMAIN_ID | string | created_on | 2009-01-01 00:00:00 | string | domain | emailaddress.com |
|
Example Request JSON
[
"API_KEY",
{
"campaign": "CAMPAIGN_ID"
}
]
Example Response JSON
{
"ACCOUNT_DOMAIN_ID": {
"created_on": "2009-01-01 00:00:00",
"domain": "emailaddress.com"
}
}
Example Error Response JSON
{
"code": -1,
"message": "Missing campaign"
}
Method-specific Errors
|
---|
Missing campaign |
API-wide Errors
|
---|
API key verification failed
| API key verification failed |
API client IP not allowed
| API client IP not allowed |
Invalid params
| Attribute params must be reference to hash |