Create Event
Create notification event.
Recipe
Create event
Create event
1. Use an `event` parameter to set data associated with the event
2. Set a notification type
notication_type parameter to set the type of notification.3. Set a push notification environment
environment parameter to set the notification environment.Here, the production environment is set which means the pushes will work for a production environment only.4. Use a `user` parameter to set the ID of push notification recipient.
5. Set the ID of push notification recipient
6. Set a push message
7. Set a push notification platform
push_type parameter to set the push notification platform.Here, the push_type is set to apns. This means that the push will be delivered to iOS devices.8. As a result, the API returns a newly created event.
Create event with period date
Create event with period date
1. Use an `event` parameter to set data associated with the event
2. Set a notification type
notication_type parameter to set the type of notification.3. Set a push notification environment
environment parameter to set the notification environment.Here, the production environment is set which means the pushes will work for a production environment only.4. Set an event type
event_type method to set the event type.Here, the period_date event type is set. This event occurs within a given period from the initial date. Valid only if the period is specified.5. Set a date of the event
date parameter to set the date for the event to be sent on.6. Set a period of the event
period parameter to set the period of the event.7. Set an end date of the event
end_date parameter to set the date for the event to end.8. Set a push message
9. Set a push notification platform
push_type parameter to set the push notification platform.Here, the push_type is set to apns. This means that the push will be delivered to iOS devices.10. As a result, the API returns a newly created event.
Body Parameters
push and email.notification_type=push, otherwise ignored. If not set, the notification will be delivered to all possible devices for specified users. Possible values are: apns, apns_voip, gcm.development and production.one_shot- a one-time event caused by an external object (valid only if thedateis not specified).fixed_date- a one-time event that occurs at a specified date (valid only if thedateis specified).period_date- is a reusable event that occurs within a given period from the initial date (valid only if theperiodis specified).
Default:one_shot- ifdateis not specified.period_date- ifperiodis specified.fixed_date- ifdateis specified.
event_type=fixed_date, the date can not be in the past.date.Headers
Responses
201
201