Fetch Push Status
The Fetch Push Status API fetches the list of push messages with statuses as per the input request given by the user.
URL
The HTTP URL for Fetch Push Status API is:
http://<hostname/ip>:<port>/kpns/api/v1/status/push
This API implements Gateway Filter for Authentication to authenticate access of the API by a user.
Method
POST
Header
The payload's request header includes Content-Type as application/json
Input Parameters
The following fields are input parameters:
Sample Request
{ "requestId": "8340612061973476100", "appId": "25016-9447884208", "ksid": "9217144992113196746", "ufid": "thomassmith@gmail.com", "osType": "iPad", "sentDate": "09/23/2016", "endDate": "09/23/2016", "startElement": "0", "elementsPerPage": "20" }
Sample Response
{ "total" : 1, "submitted" : 1, "initial" : 0, "rejected" : 0, "notAttempted" : 0, "cancelled" : 0, "undelivered" : 0, "opened" : 0, "rows" : [ { "pushId" : "9078822310396325159", "ksid" : "9217144992113196746", "sentDate" : "1474622506928", "lastActivityDate" : "1474622507000", "requestId" : "8340612061973476100", "appId" : "25016-9447884208", "osType" : "ipad", "statusMessage" : "Message Sent to Apple Cloud", "status" : "Submitted" } ] }
Response Status
Code | Description |
---|---|
Status 200 | Request queued |
Status 400 | Request ID should not contain alphabets or special characters The Request Contains Invalid keys Please provide sent date |
Status 401 | Unauthorized request |
Status 500 | Server failure to process request |