Skip to main content

authSubscriberSession

This action allows you to create a subscriber session to bypass the subscriber login panel when opening a publication.

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
subscription_idRequired
integerID of the folder
loginRequired
stringLogin of the subscriber
lifetime
integerSession validity period in seconds

Response​

This method returns a Subscriber Session.

NameTypeDefaultDescription
IDstringUnique session key
SubscriptionIDintegerUnique identifying key of the subscriber's folder
SubscriberLoginstringLogin of the subscriber

Example response​

JSON
{
"response": {
"status": "ok",
"version": 2,
"requestid": "YlZVnX",
"requests": 216,
"content": {
"ID": "7a5ed85cc34e7f20e953c6a1fbdbd400",
"SubscriptionID": 4540112,
"SubscriberLogin": "leia"
}
}
}