getAutoresponderBatchId

Returns the Batch Id associated with the specified Autoresponder.

getAutoresponderBatchId

Returns the Batch Id associated with the specified Autoresponder.

Top ↑

Syntax

int getAutoresponderBatchId( string api_key, int autoresponder_id );

Parameters

api_key (string)

The key required to access the API. See Getting Started for more information.

autoresponder_id (int)

The ID of the Autoresponder.

Return Value

The ID of the Autoresponder's Batch on success.

Examples

$api = new Api($url, 'YOURAPIKEY');
$autoresponder_id = 23;
$batch_id = $api->invokeMethod('getAutoresponderBatchId', $autoresponder_id);
{
    "id": 1,
    "method": "getAutoresponderBatchId",
    "params": [
        "YOURAPIKEY",
        23
    ]
}
{
    "id": 1,
    "result": 54654,
    "error": null
}

Error Codes

This method may return the following error code in addition to the standard error codes:

Code Error Description
309 Unable to Load Campaign the Autoresponder could not be found or retrieved.

See Also