Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NotificationsService = "https://onesignal.com/api/v1/notifications"
NotificationsService doc ...
View Source
var PlayersService = "https://onesignal.com/api/v1/players"
PlayersService doc ...
Functions ¶
func SendNotification ¶
func SendNotification(data NotificationRequest, oneSignalKey string) (string, error)
SendNotification ...
Types ¶
type NotificationRequest ¶
type NotificationRequest struct { AppID string `json:"app_id"` IncludedSegments []string `json:"included_segments"` IncludePlayerIds []string `json:"include_player_ids"` Data struct { Foo string `json:"foo"` } `json:"data"` Headings Headings `json:"headings"` Contents Contents `json:"contents"` LargeIcon string `json:"large_icon"` }
NotificationRequest ...
type NotificationResponse ¶
type NotificationResponse struct { ID string `json:"id"` Recipients int `json:"recipients"` ExternalID interface{} `json:"external_id"` }
NotificationResponse doc ...
type OSAddDeviceReq ¶
type OSAddDeviceReq struct { AppID string `json:"app_id"` DeviceModel string `json:"device_model"` DeviceOs string `json:"device_os"` DeviceType int `json:"device_type"` GameVersion string `json:"game_version"` Identifier string `json:"identifier"` Language string `json:"language"` Tags struct { A string `json:"a"` Foo string `json:"foo"` } `json:"tags"` Timezone int `json:"timezone"` }
OSAddDeviceReq ...
type OSAddDeviceRes ¶
OSAddDeviceRes ...
Click to show internal directories.
Click to hide internal directories.