List push tokens for channel (v2)
List push tokens for a channel.
Returns array with two elements:
- Array Element 0 - Integer – 1 or 0, where 1 is success, and 0 is error.
- Array Element 1 - String – Description of the success or error, if available. e.g "Modified Channels"
| Path Parameters |
|---|
sub_key string — REQUIREDYour app's subscribe key from Admin Portal. |
channel string — REQUIREDThe channel ID to perform the operation on. Example:
|
| Query Parameters |
|---|
type stringPossible values: [ Backend indicator (apns for Apple) Example:
|
environment string — REQUIREDPossible values: [ Environment of the mobile application. Example:
|
topic string — REQUIREDBundle ID of the mobile application. Example:
|
start stringStarting push token for pagination. Use the last push token from previous page request. |
count integerNumber of push tokens to return for pagination. Max of 1000 tokens at a time. Defaults to 100. |
uuid string — REQUIREDA UTF-8 encoded string of up to 92 characters used to identify the client. Example:
|
signature stringSignature used to verify that the request was signed with the secret key associated with the subscriber key. If Access Manager is enabled, either a valid authorization token or a signature are required. See Access Manager documentation for details on how to compute the signature. |
timestamp integerUnix epoch timestamp used as a nonce for signature computation. Must have no more than ± 60 seconds offset from NTP. Required if |
| Responses | ||
|---|---|---|
200OK
| ||
400Bad Request
| ||
403Not Enabled
| ||
404Channels Missing
| ||
500Server Error
| ||
503Service Unavailable
|
sub_key*channel*typeenvironment*topic*startcountuuid*signatureIf Access Manager is enabled, either a valid authorization token or a signature are required.
See Access Manager documentation for details on how to compute the signature.
timestampRequired if
signature parameter is supplied.message"Invalid Subscribe Key"errortrueservice"Access Manager"status400error"Use of the mobile push notifications API requires Push Notifications which is not enabled for this subscribe key. Login to your PubNub Dashboard Account and enable Push Notifications. Contact support@pubnub.com if you require further assistance."error"Channels missing"error"Internal Server Error"error"Failed to retrieve account configuration"