| Name |
Type |
Description |
Notes |
| name |
String |
The identifier or name of the event. Maximum 128 characters. |
|
| external_id |
String |
The external ID of the user targeted for the event. Either the user's External ID or OneSignal ID is required. |
[optional] |
| onesignal_id |
String |
The OneSignal ID of the user targeted for the event. Either the user's External ID or OneSignal ID is required. |
[optional] |
| timestamp |
Time |
Time the event occurred as an ISO8601 formatted string. Defaults to now if not included or past date provided. |
[optional] |
| payload |
Hash<String, Object> |
Properties or data related to the event, like {"geography": "USA"} |
[optional] |
require 'onesignal'
instance = OneSignal::CustomEvent.new(
name: null,
external_id: null,
onesignal_id: null,
timestamp: null,
payload: null
)