Push Application: Get

Resource

https://api.infobip.com/push/1/applications/:applicationCode

Parameters

Property name Type Description
applicationCode string PUSH application code is optional. If not supplied, all applications will be returned.

Request Example

					GET /push/1/applications HTTP/1.1
Host: api.infobip.com
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
Content-Type: application/json
					
				

Response

					[
 {
  "applicationCode": "233623e3c860b49ec69a464834343481-8bj4el4a-256d-23fd-56ad-b5bc3d568b53",
  "name": "Push Test 1",
  "description": "PUSH test application 1",
  "registrationsCount": 45655,
  "apns": {
    "enabled": true
  },
  "gcm": {
    "enabled": false
  }
 },
 {
  "applicationCode": "26581d19d889e4867b997e386ea0e222-b8325bdd-3d56-76e1-d104-6a5c48234bc8",
  "name": "Push Test 2",
  "description": "PUSH test application 2",
  "registrationsCount": 35698,
   "apns": {
    "enabled": true
  },
  "gcm": {
    "enabled": true
  }
 }
]
					
				
					{
  "requestError": {
    "serviceException": {
      "messageId": "BAD_REQUEST",
      "text": "Bad request"
    }
  }
}
					
				
					{
  "requestError": {
    "serviceException": {
      "messageId": "APPLICATION_NOT_FOUND",
      "text": "Application with given id cannot be found."
    }
  }
}
					
				
					{
  "requestError": {
    "serviceException": {
      "messageId": "THROTTLE_EXCEPTION",
      "text": "Too many requests. Try again later."
    }
  }
}
					
				

Response format

If successful, the response header HTTP status code will be 200 OK.

If there is an error, you will receive an error response status code in the header and the response body will contain an error object. If you try to create an application when you do not have the user’s authorization, you will receive the 401 unauthorized error.

Response

Parameter Type Description
applicationCode String Push application code.
name String Push application name.
description String Push application description.
registrationsCount Long Number of Push application registrations.
apns.enabled Boolean Whether sending messages via APNS is enabled for this application.
gcm.enabled Boolean Whether sending messages via GCM is enabled for this application.

Additional example

The following method allows you to get all of your applications on a single account.

Get single Push application by applicationCode

Request

GET /push/1/applications/233623e3c860b49ec69a464834343481-8bj4el4a-256d-23fd-56ad-b5bc3d568b53 HTTP/1.1
Host: api.infobip.com
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
Content-Type: application/json	
  

Response

{
  "applicationCode": "233623e3c860b49ec69a464834343481-8bj4el4a-256d-23fd-56ad-b5bc3d568b53",
  "name": "Push Test 1",
  "description": "PUSH test applicaiton 1",
  "registrationsCount": 456655,
  "apns": {
    "enabled": false
  },
  "gcm": {
    "enabled": true
  }
 }