From 39d19cca48a5bad6fc6a20e517f2dd345c152738 Mon Sep 17 00:00:00 2001 From: Nikita Date: Fri, 9 Jul 2021 16:46:57 +0300 Subject: [PATCH] Update notifications.go Add name property for request https://documentation.onesignal.com/reference/create-notification --- notifications.go | 1 + 1 file changed, 1 insertion(+) diff --git a/notifications.go b/notifications.go index dec16bb..f6baa6d 100644 --- a/notifications.go +++ b/notifications.go @@ -33,6 +33,7 @@ type NotificationRequest struct { AppID string `json:"app_id"` Contents map[string]string `json:"contents,omitempty"` Headings map[string]string `json:"headings,omitempty"` + Name string `json:"name,omitempty"` IsIOS bool `json:"isIos,omitempty"` IsAndroid bool `json:"isAndroid,omitempty"` IsWP bool `json:"isWP,omitempty"`