post https://ads-dev.aylanetworks.com/apiv1/notifications//notification_apps.json
This API creates a notification app associated with the specified notification.
| Name | Type | Description |
|---|---|---|
| app_type | string (255 chars) | Type of notification. The API supports the following request data objects: email, sms, push_ios, push_android, push_android_fcm, push_baidu. |
| nickname | string (255 chars) | User-friendly notification name |
| username | string (255 chars) | Used as greeting in notification |
| string (255 chars) | Destination email address | |
| email_template_id | string (255 chars) | Custom email template id |
| email_subject | string (255 chars) | Email subject line for email template |
| email_body_html | string (10000 characters) | Email body for email template |
| message | string (10000 characters) | Additional text for the notification |
| country_code | string (255 chars) | Country code for phone number |
| phone_number | string (255 chars) | 10 digit phone number |
| registration_id | integer | Registration ID linking phone/tablet to notification service |
| application_id | integer | Application ID linking phone/tablet to notification service |
| channel_id | string (255 chars) | Channel ID linking phone/tablet to Baidu notification service |
| push_sound | string (255 chars) | Sound file name (mp3) associated with this notification |
| push_mdata | string (255 chars) | Additional details or key-value pairs |
| data | string (255 chars) | Additional details or key-value pairs |
{
"notification_app":{
"id":14916608,
"notification_id":14516296,
"app_type":"email",
"nickname":"Email Notification",
"notification_app_parameters":{
"username":"aylaun",
"email":"[email protected]",
"email_template_id":"email",
"email_subject":"notification test",
"email_body_html":"test",
"message":"test"
}
}
}{
"notification_app": {
"app_type": "sms",
"nickname": "required",
"notification_app_parameters": {
"username": "",
"message": "",
"country_code": "",
"phone_number": ""
}
}
}{
"notification_app": {
"app_type": "push_ios",
"nickname": "required",
"notification_app_parameters": {
"message": "",
"registration_id": "",
"application_id": "",
"push_sound": "",
"push_mdata": ""
}
}
}{
"notification_app": {
"app_type": "push_android",
"nickname": "required",
"notification_app_parameters": {
"message": "",
"registration_id": "",
"push_sound": "",
"push_mdata": ""
}
}
}{
"notification_app": {
"app_type": "push_android_fcm",
"nickname": "required",
"notification_app_parameters": {
"message": "",
"registration_id": "",
"push_sound": "",
"push_mdata": ""
}
}
}{
"notification_app": {
"app_type": "push_baidu",
"nickname": "required",
"notification_app_parameters": {
"message": "",
"channel_id": "",
"application_id": "",
"push_sound": "",
"data": ""
}
}
}