App-Konfigurations-API
configureApplication für iOS
Anchor link toKonfiguriert die iOS-Plattform für die App.
POST https://api.pushwoosh.com/json/1.3/configureApplication
Request Body
Anchor link to| Name | Typ | Beschreibung |
|---|---|---|
| auth | string | API-Zugriffstoken aus dem Pushwoosh Control Panel |
| application | string | Pushwoosh-Anwendungscode |
| device_type | integer | Muss 1 für iOS sein |
| ios_key_management_type | string | ”manual” |
| ios_key_file | string | Base64-kodierter Inhalt der iOS-Schlüsseldatei |
| ios_key_password | string | Passwort für die iOS-Schlüsseldatei |
| ios_gateway | integer | ”0” für Sandbox, “1” für Produktion |
| ios_framework | string | Mögliche Werte: “native”, “cordova”, “titanium” |
{ "status_code": 200, "status_message": "OK", "response": { "providers": { "ios": true, "amazon": false, "android": false, "baidu_android": false, "chrome": false, "email": false, "firefox": false, "huawei_android": false, "internet_explorer": false, "osx": false, "safari": false, "sms": false, "web": false, "whats_app": false, "windows": false } }}{ "request": { "auth": "yxoPUlwqm…………pIyEX4H", // erforderlich. API-Zugriffstoken aus dem Pushwoosh Control Panel "application": "XXXXX-XXXXX", // erforderlich. Pushwoosh-Anwendungscode "device_type": 1, // erforderlich. 1 für iOS "ios_key_management_type": "manual", // erforderlich. "manual" "ios_key_file": "MIIMY...BAQ==", // erforderlich. Base64-kodierter Inhalt der iOS-Schlüsseldatei "ios_key_password": "password", // erforderlich. "ios_gateway": 1, // erforderlich. "0" (Sandbox) | "1" (Produktion) "ios_framework": "native" // erforderlich. mögliche Werte: "native", "cordova", "titanium", // "marmalade", "adobeAir", "corona", "xamarin", // "phoneGapBuild", "triggerIO", "unity" }}configureApplication für Android
Anchor link toKonfiguriert die Android-Plattform für die App.
POST https://api.pushwoosh.com/json/1.3/configureApplication
Request Body
Anchor link to| Name | Typ | Beschreibung |
|---|---|---|
| auth* | string | API-Zugriffstoken aus Ihrem Pushwoosh Control Panel. |
| application* | string | Pushwoosh-Anwendungscode |
| device_type* | integer | Muss 3 für Android sein. |
| android_framework* | string | Android-Framework. Mögliche Werte: native, cordova, marmalade, adobeAir, corona, xamarin, phoneGapBuild, triggerIO, titanium, unity. |
| android_fcm_service_account* | object | FCM-Dienstkontoschlüssel (JSON-Datei, die in den Firebase-Projekteinstellungen generiert wird). |
{ "status_code": 200, "status_message": "OK", "response": { "providers": { "ios": false, "amazon": false, "android": true, "baidu_android": false, "chrome": false, "email": false, "firefox": false, "huawei_android": false, "internet_explorer": false, "osx": false, "safari": false, "sms": false, "web": false, "whats_app": false, "windows": false } }}{ "request": { "auth": "Z2PLR....IRwTqHwCr", "application": "87E33-XXXXX", "device_type": 3, "android_fcm_service_account": { "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "client_email": "****@foobar.iam.gserviceaccount.com", "client_id": "115********6584854983", "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/firebase-adminsdk-zffgu%40foobar.iam.gserviceaccount.com", "private_key": "-----BEGIN PRIVATE KEY-----\nuH/OU/fIL+i6Wm8as...\n-----END PRIVATE KEY-----\n", "private_key_id": "e3749********6d9", "project_id": "app-android", "token_uri": "https://oauth2.googleapis.com/token", "type": "service_account", "universe_domain": "googleapis.com" }, "android_framework": "native" }}configureApplication für Mac OS X
Anchor link toKonfiguriert die Mac OS X-Plattform für die App.
POST https://api.pushwoosh.com/json/1.3/configureApplication
Request Body
Anchor link to| Name | Typ | Beschreibung |
|---|---|---|
| auth* | string | API-Zugriffstoken aus dem Pushwoosh Control Panel. |
| application* | string | Pushwoosh-Anwendungscode |
| device_type* | integer | Muss 7 für Mac OS X sein. |
| macos_key_management_type* | string | Derzeit ist nur der Typ “manual” verfügbar. |
| macos_cert_file | string | Base64-kodierter Inhalt der Mac OS X-Zertifikatsdatei. |
| macos_key_file | string | Base64-kodierter Inhalt der Mac OS X-Schlüsseldatei. |
| macos_key_password | string | Passwort der Schlüsseldatei. |
| macos_gateway* | integer | Push-Gateway. “0” für Sandbox, “1” für Produktion. |
{ "status_code": 200, "status_message": "OK", "response": { "providers": { "ios": false, "amazon": false, "android": false, "baidu_android": false, "chrome": false, "email": false, "firefox": false, "huawei_android": false, "internet_explorer": false, "osx": true, "safari": false, "sms": false, "web": false, "whats_app": false, "windows": false } }}{ "request":{ "auth": "yxoPUlwqm…………pIyEX4H", // erforderlich. API-Zugriffstoken aus dem Pushwoosh Control Panel "application": "XXXXX-XXXXX", // erforderlich. Pushwoosh-Anwendungscode "device_type": 7, // erforderlich. 7 für Mac OS X "macos_key_management_type": "manual", // erforderlich. "manual" "macos_cert_file": "iVBORw0KGgoAAAANSUhEUgAABB…", // optional. Base64-kodierter Inhalt der Mac OS X-Zertifikatsdatei "macos_key_file": "iVBORw0KGgoAAAANSUhEUgAABB…", // optional. Base64-kodierter Inhalt der Mac OS X-Schlüsseldatei "macos_key_password": "PASSWORD", // optional. Passwort der Schlüsseldatei "macos_gateway": 1 // erforderlich. Push-Gateway. "0" für Sandbox oder "1" für Produktion }}configureApplication für Windows
Anchor link toKonfiguriert Windows-Plattformen für die App.
POST https://api.pushwoosh.com/json/1.3/configureApplication
Request Body
Anchor link to| Name | Typ | Beschreibung |
|---|---|---|
| auth* | string | API-Zugriffstoken aus dem Pushwoosh Control Panel. |
| application* | string | Pushwoosh-Anwendungscode |
| device_type* | integer | Muss 8 für Windows sein. |
| wns_psid* | string | Paketsicherheitskennung aus dem Windows Store für die App. Beginnt mit “ms-app://“. |
| wns_secret* | string | Client Secret aus dem Windows Store für die App. |
{ "status_code": 200, "status_message": "OK", "response": { "providers": { "ios": false, "amazon": false, "android": false, "baidu_android": false, "chrome": false, "email": false, "firefox": false, "huawei_android": false, "internet_explorer": false, "osx": false, "safari": false, "sms": false, "web": false, "whats_app": false, "windows": true } }}{ "request": { "auth": "yxoPUlwqm…………pIyEX4H", // erforderlich. API-Zugriffstoken aus dem Pushwoosh Control Panel "application": "XXXXX-XXXXX", // erforderlich. Pushwoosh-Anwendungscode "device_type": 8, // erforderlich. 8 für Windows "wns_psid": "ms-app://…", // erforderlich. Paketsicherheitskennung der App aus dem Windows Store "wns_secret": "CLIENT_SECRET" // erforderlich. Windows Client Secret }}configureApplication für Amazon
Anchor link toKonfiguriert die Amazon-Plattform für die App.
POST https://api.pushwoosh.com/json/1.3/configureApplication
Request Body
Anchor link to| Name | Typ | Beschreibung |
|---|---|---|
| auth* | string | API-Zugriffstoken aus dem Pushwoosh Control Panel. |
| application* | string | Pushwoosh-Anwendungscode |
| device_type* | integer | Muss 9 für Amazon sein. |
| adm_cid* | string | Amazon Client-ID. |
| adm_secret* | string | Amazon Client Secret. |
| adm_framework* | string | Amazon-Framework. Mögliche Werte: native, unity, adobeAir. |
{ "status_code": 200, "status_message": "OK", "response": { "providers": { "ios": false, "amazon": true, "android": false, "baidu_android": false, "chrome": false, "email": false, "firefox": false, "huawei_android": false, "internet_explorer": false, "osx": false, "safari": false, "sms": false, "web": false, "whats_app": false, "windows": false } }}{ "request": { "auth": "yxoPUlwqm…………pIyEX4H", // erforderlich. API-Zugriffstoken aus dem Pushwoosh Control Panel "application": "XXXXX-XXXXX", // erforderlich. Pushwoosh-Anwendungscode "device_type": 9, // erforderlich. 9 für Amazon "adm_cid": "CLIENT_ID", // erforderlich. Amazon Client-ID "adm_secret": "CLIENT_SECRET", // erforderlich. Amazon Client Secret "adm_framework": "native" // erforderlich. mögliche Werte: native, unity, adobeAir. }}configureApplication für Chrome
Anchor link toKonfiguriert die Chrome-Plattform für die App.
POST https://api.pushwoosh.com/json/1.3/configureApplication
Request Body
Anchor link to| Name | Typ | Beschreibung | Erforderlich |
|---|---|---|---|
| auth* | string | API-Zugriffstoken aus dem Pushwoosh Control Panel. | Erforderlich |
| application* | string | Pushwoosh-Anwendungscode | Erforderlich |
| device_type* | integer | Muss 11 für Chrome sein. | Erforderlich |
| chrome_fcm_service_account* | object | FCM-Dienstkontoschlüssel (JSON-Datei, die in den Firebase-Projekteinstellungen generiert wird). | Erforderlich |
| chrome_vapid_key* | string | Öffentlicher VAPID-Schlüssel (Voluntary Application Server Identification), der für die Authentifizierung von Push-Benachrichtigungen in Chrome verwendet wird. | Erforderlich |
| chrome_vapid_private_key* | string | Privater VAPID-Schlüssel, der zum Signieren und Senden von Push-Benachrichtigungen in Chrome verwendet wird. | Erforderlich |
{ "status_code": 200, "status_message": "OK", "response": { "providers": { "ios": false, "amazon": false, "android": false, "baidu_android": false, "chrome": true, "email": false, "firefox": false, "huawei_android": false, "internet_explorer": false, "osx": false, "safari": false, "sms": false, "web": false, "whats_app": false, "windows": false } }}{ "request": { "auth": "Z2PLR....IRwTqHwCr", "application": "87E33-XXXXX", "device_type": 11, "chrome_fcm_service_account": { "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "client_email": "****@foobar.iam.gserviceaccount.com", "client_id": "11529......6584854983", "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/****foobar.iam.gserviceaccount.com", "private_key": "-----BEGIN PRIVATE KEY-----\nuH/OU/fIm8as...\n-----END PRIVATE KEY-----\n", "private_key_id": "e3749......e66d9", "project_id": "app-chrome", "token_uri": "https://oauth2.googleapis.com/token", "type": "service_account", "universe_domain": "googleapis.com" }, "chrome_vapid_key": "BEr....KPqQvCbU", "chrome_vapid_private_key": "ee....flOqmSo" }}configureApplication für Safari
Anchor link toKonfiguriert die Safari-Plattform für die App.
POST https://api.pushwoosh.com/json/1.3/configureApplication
Request Body
Anchor link to| Name | Typ | Beschreibung |
|---|---|---|
| auth* | string | API-Zugriffstoken aus dem Pushwoosh Control Panel. |
| application* | string | Pushwoosh-Anwendungscode |
| device_type* | integer | Muss 10 für Safari sein. |
| safari_key_management_type* | string | Derzeit ist nur der Typ “manual” verfügbar. |
| safari_website_name | string | Name der Website. |
| safari_allowed_domains | array | Bsp.: https://site1.com”, https://site2.com” |
| safari_url_template* | string | Safari-URL-Vorlage, formatiert als “https://%@“. |
| safari_icon_file | string | Base64-kodierter Inhalt einer 256x256px PNG-Datei. |
| safari_key_file* | string | Base64-kodierter Inhalt der Safari .p12-Schlüsseldatei. |
| safari_key_password | string | Passwort für die Schlüsseldatei. |
{ "status_code": 200, "status_message": "OK", "response": { "providers": { "ios": false, "amazon": false, "android": false, "baidu_android": false, "chrome": false, "email": false, "firefox": false, "huawei_android": false, "internet_explorer": false, "osx": false, "safari": true, "sms": false, "web": false, "whats_app": false, "windows": false } }}{ "request": { "auth": "yxoPUlwqm…………pIyEX4H", // erforderlich. API-Zugriffstoken aus dem Pushwoosh Control Panel "application": "XXXXX-XXXXX", // erforderlich. Pushwoosh-Anwendungscode "device_type": 10, // erforderlich. 10 für Safari "safari_key_management_type": "manual", // erforderlich. "manual" "safari_website_name": "WEBSITE_NAME", // optional. "safari_allowed_domains": [ // optional. "https://site1.com", "https://site2.com" ], "safari_url_template": "https://%@", // erforderlich. "safari_icon_file": "iVBORw0KGgoAAAANSUhEUgAABB…", // optional. Base64-kodierter Inhalt einer 256x256px PNG-Datei "safari_key_file": "MIIMY...BAQ==", // erforderlich. Base64-kodierter Inhalt der Safari .p12-Schlüsseldatei "safari_key_password": "PASSWORD" // optional. Passwort für die obige Schlüsseldatei }}configureApplication für Firefox
Anchor link toKonfiguriert die Firefox-Plattform für die App.
POST https://api.pushwoosh.com/json/1.3/configureApplication
Request Body
Anchor link to| Name | Typ | Beschreibung | Erforderlich |
|---|---|---|---|
| auth* | string | API-Zugriffstoken aus dem Pushwoosh Control Panel. | Erforderlich |
| application* | string | Pushwoosh-Anwendungscode | Erforderlich |
| device_type* | integer | Muss 12 für Firefox sein. | Erforderlich |
| firefox_is_enabled | boolean | Aktiviert Push-Benachrichtigungen für Firefox. | Optional |
| firefox_fcm_service_account* | object | JSON, das in den Firebase-Projekteinstellungen generiert wird. | Erforderlich |
| firefox_vapid_key* | string | Öffentlicher VAPID-Schlüssel (Voluntary Application Server Identification), der für die Authentifizierung von Push-Benachrichtigungen in Firefox verwendet wird. | Erforderlich |
| firefox_vapid_private_key* | string | Privater VAPID-Schlüssel, der zum Signieren und Senden von Push-Benachrichtigungen in Firefox verwendet wird. | Erforderlich |
{ "status_code": 200, "status_message": "OK", "response": { "providers": { "ios": false, "amazon": false, "android": false, "baidu_android": false, "chrome": false, "email": false, "firefox": true, "huawei_android": false, "internet_explorer": false, "osx": false, "safari": false, "sms": false, "web": false, "whats_app": false, "windows": false } }}{ "request": { "auth": "Z2PLR....IRwTqHwCr", "application": "87E33-XXXXX", "device_type": 12, "firefox_fcm_service_account": { "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "client_email": "****@foobar.iam.gserviceaccount.com", "client_id": "115........6584854983", "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/****@foobar.iam.gserviceaccount.com", "private_key": "-----BEGIN PRIVATE KEY-----\n****uH/OU/fILL****fMJZ+i6****um8as.....\n-----END PRIVATE KEY-----\n", "private_key_id": "e3........8e66d9", "project_id": "app-firefox", "token_uri": "https://oauth2.googleapis.com/token", "type": "service_account", "universe_domain": "googleapis.com" }, "firefox_vapid_key": "BEr....KPqQvCbU", "firefox_vapid_private_key": "ee....flOqmSo" }}configureApplication für E-Mail
Anchor link toKonfiguriert die E-Mail-Plattform für die App.
POST https://api.pushwoosh.com/json/1.3/configureApplication
Request Body
Anchor link to| Name | Typ | Beschreibung |
|---|---|---|
| auth* | string | API-Zugriffstoken aus dem Pushwoosh Control Panel. |
| application* | string | Pushwoosh-Anwendungscode |
| device_type* | integer | Muss 14 für E-Mail sein. |
| email_from_email* | string | E-Mail-Adresse des Absenders. Sollte gültig und verifiziert sein. |
| email_from_name* | string | Name des Absenders. |
| email_reply* | string | E-Mail-Adresse für Antworten. Sollte gültig und verifiziert sein. |
{ "status_code": 200, "status_message": "OK", "response": { "providers": { "ios": false, "amazon": false, "android": false, "baidu_android": false, "chrome": false, "email": true, "firefox": false, "huawei_android": false, "internet_explorer": false, "osx": false, "safari": false, "sms": false, "web": false, "whats_app": false, "windows": false } }}{ "request":{ "auth": "yxoPUlwqm…………pIyEX4H", // erforderlich. API-Zugriffstoken aus dem Pushwoosh Control Panel "application": "XXXXX-XXXXX", // erforderlich. Pushwoosh-Anwendungscode "device_type": 14, // erforderlich. 14 für E-Mail "email_from_email": "email@domain.com", // erforderlich. Die E-Mail-Adresse sollte gültig und verifiziert sein "email_from_name": "SENDER_NAME", // erforderlich. Name, der im "Von"-Feld der E-Mail angezeigt wird "email_reply": "email@domain.com" // erforderlich. Die E-Mail-Adresse für Antworten sollte gültig und verifiziert sein }}