Applications API
API methods to manage apps
post
https://api.pushwoosh.com/json/1.3
/createApplication
/createApplication
Example
{
"request": {
"auth": "yxoPUlwqm…………pIyEX4H", // required, API access token from Pushwoosh Control Panel
"icon": "iVBORw0KGgoAAAANSUhEUgAAAH0AAACVCAIAAAD6...", // optional, Base-64 encoded binary content of png file
"authorize_all_tokens" : true, // or 'false', optional. If true, allows all api tokens to communicate with this app
"sdk_ios": "pw", // optional. Possible values are “pw” or “corona”
"sdk_android": "pw", // optional. Possible values are “pw”, “corona”, or “phonegap”
"title": "APP_TITLE" // required. Title for the new app in Pushwoosh
}
}
post
https://api.pushwoosh.com/json/1.3
/updateApplication
/updateApplication
Example
{
"request": {
"auth": "yxoPUlwqm…………pIyEX4H", // required, API access token from Pushwoosh Control Panel
"application": "XXXXX-XXXXX", // required, application code of the app you want to update
"icon": "iVBORw0KGgoAAAANSUhEUgAAAH0AAACVCAIAAAD6...", // optional. Base-64 encoded binary content of png file
"sdk_ios": "pw", // optional. Possible values are “pw” or “corona”
"sdk_android": "pw", // optional. Possible values are “pw”, “corona”, or “phonegap”
"title": "APP_TITLE" // optional. New title for the app in Pushwoosh
}
}
post
https://api.pushwoosh.com/json/1.3
/deleteApplication
/deleteApplication
Example
{
"request": {
"auth": "yxoPUlwqm…………pIyEX4H", // required, API access token from Pushwoosh Control Panel
"application": "XXXXX-XXXXX" // required, Pushwoosh application code
}
}
post
https://api.pushwoosh.com/json/1.3
/getApplication
/getApplication
{
"request": {
"auth": "yxoPUlwqm…………pIyEX4H", // required, API access token from Pushwoosh Control Panel
"application": "XXXXX-XXXXX" // required, Pushwoosh application code
}
}
post
https://api.pushwoosh.com/json/1.3
/getApplications
/getApplications
{
"request": {
"auth": "yxoPUlwqm…………pIyEX4H", // required, API access token from Pushwoosh Control Panel
"page": 2 // optional, the page number for pagination
}
}
post
https://api.pushwoosh.com/json/1.3
/getApplicationFile
/getApplicationFile
Example
{
"request": {
"auth": "yxoPUlwqm…………pIyEX4H", // required, API access token from Pushwoosh Control Panel
"application": "XXXXX-XXXXX", // required, Pushwoosh application code
"file": "ios_auto_privatekey" // required, identifier of the file to retrieve. See values below
}
}
Possible values for the "file" parameter:
"ios_auto_privatekey" | "ios_manual_privatekey" | "ios_auto_certificate" | "ios_manual_certificate" | "ios_push_certificate" | "ios_provisioning_profile" | "macos_manual_privatekey" | "macos_manual_certificate" | "macos_push_certificate" | "safari_manual_privatekey" | "safari_push_certificate" | "safari_push_package", | "wp7_cert", "wp7_key", "wp7_ca"
Response example:
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
-----BEGIN RSA PRIVATE KEY-----
...
-----END RSA PRIVATE KEY-----
post
https://api.pushwoosh.com/json/1.3
/setApplicationPlatformStatus
/setApplicationPlatformStatus
Example
{
"request": {
"application": "XXXXX-XXXXX", // required, Pushwoosh application code
"auth": "yxoPUlwqm…………pIyEX4H", // required, API access token from Pushwoosh Control Panel
"platform": 1, // required. 1 — iOS; 3 — Android; 5 — Windows Phone; 7 — OS X; 8 — Windows 8; 9 — Amazon; 10 — Safari; 11 — Chrome; 12 — Firefox
"status": "disable" // or "enable", required
}
}
Last modified 8d ago