Skip to main content

fetchAccountSubscribers

This action allows you to fetch your Account's subscribers.

info

The API key must have access rights to subscribers_read.

Request​

NameTypeDefaultDescription
apikeyRequired
stringAPI public key
signatureRequired
stringSignature of the request. See how to sign your requests
expires
timestampUNIX timestamp for request expiration (GMT)
output
stringFormat of the response. Either XML (default), JSON or PHP
order
stringString of characters used to define the organization criteria of the subscribers. See how to sort subscribers
way
stringString of characters used to define the sort order. Either UP (default) or DOWN
start
integerStart position of the range of subscribers. Default is 0
step
integerNumber of subscribers to be sent from the start position (max: 50)

Response​

This method returns an array of Subscribers.

NameTypeDefaultDescription
AccountIDintegerSubscriber's owner account ID (should be your account ID)
SubscriptionIDintegerSubscriber's folder ID
LastNamestringLast name of the subscriber
FirstNamestringFirst name of the subscriber
EmailstringEmail address of the subscriber
LoginstringLogin of the subscriber
PasswordstringPassword of the subscriber
IsActivebooleanActivation status of the subscriber. Either 1 (activated), 0 (deactivated)
HasFullAccessbooleanFull access to the subscription. Either 1 (activated), 0 (deactivated)
LastLogindatetimeDate of the subscriber's last login
CreationdatetimeDate the subscriber was created
ModificationdatetimeDate the subscriber was last edited
ExtrasstringAdditional information on the subscriber, in varchar format up to 255 characters in size

Example response​

JSON
{
"response": {
"status": "ok",
"version": 2,
"requestid": "NIwM0j",
"requests": 163,
"content": {
"total": 1,
"start": 0,
"step": 10,
"items": [
{
"AccountID": 4516825,
"SubscriptionID": 4540112,
"LastName": "",
"FirstName": "",
"Email": "",
"Login": "leia",
"Password": "syCo3hJN",
"IsActive": 0,
"HasFullAccess": 0,
"LastLogin": false,
"Creation": "2015-10-16 11:31:05",
"Modification": "2015-10-16 11:31:05",
"Extras": ""
}
]
}
}
}