Versions in this module Expand all Collapse all v1 v1.0.0 Jun 26, 2019 Changes in this version + func CheckResponse(r *http.Response) error + type App struct + APNSCertificates string + APNSEnv string + BasicAuthKey string + ChromeKey string + ChromeWebDefaultNotificationIcon string + ChromeWebGCMSenderID string + ChromeWebOrigin string + ChromeWebSubDomain string + CreatedAt time.Time + GCMKey string + ID string + MessagablePlayers int + Name string + Players int + SafariAPNSCertificate string + SafariIcon128128 string + SafariIcon1616 string + SafariIcon256256 string + SafariIcon3232 string + SafariIcon6464 string + SafariPushID string + SafariSiteOrigin string + SiteName string + UpdatedAt time.Time + type AppRequest struct + APNSEnv string + APNSP12 string + APNSP12Password string + ChromeKey string + ChromeWebDefaultNotificationIcon string + ChromeWebGCMSenderID string + ChromeWebKey string + ChromeWebOrigin string + ChromeWebSubDomain string + GCMKey string + Name string + SafariAPNSP12 string + SafariAPNSP12Password string + SafariIcon128128 string + SafariIcon1616 string + SafariIcon256256 string + SafariIcon3232 string + SafariIcon6464 string + SafariSiteOrigin string + SiteName string + type AppsService struct + func (s *AppsService) Create(opt *AppRequest) (*App, *http.Response, error) + func (s *AppsService) Get(appID string) (*App, *http.Response, error) + func (s *AppsService) List() ([]App, *http.Response, error) + func (s *AppsService) Update(appID string, opt *AppRequest) (*App, *http.Response, error) + type AuthKeyType uint + const APP + const USER + type Client struct + AppKey string + Apps *AppsService + BaseURL *url.URL + Client *http.Client + Notifications *NotificationsService + Players *PlayersService + UserKey string + func NewClient(httpClient *http.Client) *Client + func (c *Client) Do(r *http.Request, v interface{}) (*http.Response, error) + func (c *Client) NewRequest(method, path string, body interface{}, authKeyType AuthKeyType) (*http.Request, error) + type ErrorResponse struct + Messages []string + func (e *ErrorResponse) Error() string + type Filter struct + Field string + Key string + Operator string + Relation string + Value string + type Notification struct + Canceled bool + Contents map[string]string + Converted int + Data interface{} + Failed int + Headings map[string]string + ID string + QueuedAt int + Remaining int + SendAfter int + Successful int + URL string + type NotificationCreateResponse struct + Errors interface{} + ID string + Recipients int + type NotificationDeleteOptions struct + AppID string + type NotificationGetOptions struct + AppID string + type NotificationListOptions struct + AppID string + Limit int + Offset int + type NotificationListResponse struct + Limit int + Notifications []Notification + Offset int + TotalCount int + type NotificationRequest struct + ADMBigPicture string + ADMGroup string + ADMGroupMessage interface{} + ADMLargeIcon string + ADMSmallIcon string + ADMSound string + AndroidAccentColor string + AndroidBackgroundLayout interface{} + AndroidGroup string + AndroidGroupMessage interface{} + AndroidLEDColor string + AndroidSound string + AndroidVisibility int + AppID string + AppIDs []string + BigPicture string + Buttons interface{} + ChromeBigPicture string + ChromeIcon string + ChromeWebIcon string + ChromeWebImage string + CollapseID string + ContentAvailable bool + Contents map[string]string + Data interface{} + DelayedOption string + DeliveryTimeOfDay string + ExcludedSegments []string + Filters []Filter + FirefoxIcon string + Headings map[string]string + IOSAttachments interface{} + IOSBadgeCount int + IOSBadgeType string + IOSCategory string + IOSSound string + IncludeAmazonRegIDs []string + IncludeAndroidRegIDs []string + IncludeChromeRegIDs []string + IncludeChromeWebRegIDs []string + IncludeIOSTokens []string + IncludePlayerIDs []string + IncludeWPURIs []string + IncludeWPWNSURIs []string + IncludedSegments []string + IsADM bool + IsAndroid bool + IsAnyWeb bool + IsChrome bool + IsChromeWeb bool + IsFirefox bool + IsIOS bool + IsSafari bool + IsWP bool + IsWPWNS bool + LargeIcon string + MutableContent bool + Priority int + SendAfter string + SmallIcon string + SubTitle map[string]string + SummaryArg string + SummaryArgCount int + TTL int + TemplateID string + ThreadID string + URL string + WPSound string + WPWNSSound string + WebButtons interface{} + type NotificationUpdateOptions struct + AppID string + Opened bool + type NotificationsService struct + func (s *NotificationsService) Create(opt *NotificationRequest) (*NotificationCreateResponse, *http.Response, error) + func (s *NotificationsService) Delete(notificationID string, opt *NotificationDeleteOptions) (*SuccessResponse, *http.Response, error) + func (s *NotificationsService) Get(notificationID string, opt *NotificationGetOptions) (*Notification, *http.Response, error) + func (s *NotificationsService) List(opt *NotificationListOptions) (*NotificationListResponse, *http.Response, error) + func (s *NotificationsService) Update(notificationID string, opt *NotificationUpdateOptions) (*SuccessResponse, *http.Response, error) + type Player struct + AdID string + AmountSpent float32 + BadgeCount int + CreatedAt int + DeviceModel string + DeviceOS string + DeviceType int + GameVersion string + ID string + Identifier string + InvalidIdentifier bool + Language string + LastActive int + Playtime int + SDK string + SessionCount int + Tags map[string]string + Timezone int + type PlayerCSVExportOptions struct + AppID string + type PlayerCSVExportResponse struct + CSVFileURL string + type PlayerCreateResponse struct + ID string + Success bool + type PlayerListOptions struct + AppID string + Limit int + Offset int + type PlayerListResponse struct + Limit int + Offset int + Players []Player + TotalCount int + type PlayerOnFocusOptions struct + ActiveTime int + State string + type PlayerOnPurchaseOptions struct + Existing bool + Purchases []Purchase + type PlayerOnSessionOptions struct + AdID string + DeviceOS string + GameVersion string + Identifier string + Language string + SDK string + Tags map[string]string + Timezone int + type PlayerRequest struct + AdID string + AmountSpent float32 + AppID string + BadgeCount int + CreatedAt int + DeviceModel string + DeviceOS string + DeviceType int + GameVersion string + Identifier string + Language string + LastActive int + NotificationTypes string + Playtime int + SDK string + SessionCount int + Tags map[string]string + TestType int + Timezone int + type PlayersService struct + func (s *PlayersService) CSVExport(opt *PlayerCSVExportOptions) (*PlayerCSVExportResponse, *http.Response, error) + func (s *PlayersService) Create(player *PlayerRequest) (*PlayerCreateResponse, *http.Response, error) + func (s *PlayersService) Get(playerID string) (*Player, *http.Response, error) + func (s *PlayersService) List(opt *PlayerListOptions) (*PlayerListResponse, *http.Response, error) + func (s *PlayersService) OnFocus(playerID string, opt *PlayerOnFocusOptions) (*SuccessResponse, *http.Response, error) + func (s *PlayersService) OnPurchase(playerID string, opt *PlayerOnPurchaseOptions) (*SuccessResponse, *http.Response, error) + func (s *PlayersService) OnSession(playerID string, opt *PlayerOnSessionOptions) (*SuccessResponse, *http.Response, error) + func (s *PlayersService) Update(playerID string, player *PlayerRequest) (*SuccessResponse, *http.Response, error) + type Purchase struct + Amount float32 + ISO string + SKU string + type SuccessResponse struct + Success bool