Categorygithub.com/OneSignal/onesignal-go-api/v2
modulepackage
2.0.3
Repository: https://github.com/onesignal/onesignal-go-api.git
Documentation: pkg.go.dev

# README

Welcome to the official OneSignal Go Client 👋

A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.2.2
  • Package version: 2.0.3
  • Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit https://onesignal.com

Installation

go get github.com/OneSignal/onesignal-go-api

Install the following dependencies:

go get golang.org/x/oauth2

Put the package under your project folder and add the following in import:

import "github.com/OneSignal/onesignal-go-api"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), onesignal.ContextServerIndex, 1)

Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), onesignal.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), onesignal.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), onesignal.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to https://onesignal.com/api/v1

ClassMethodHTTP requestDescription
DefaultApiBeginLiveActivityPost /apps/{app_id}/live_activities/{activity_id}/tokenStart Live Activity
DefaultApiCancelNotificationDelete /notifications/{notification_id}Stop a scheduled or currently outgoing notification
DefaultApiCreateAppPost /appsCreate an app
DefaultApiCreateNotificationPost /notificationsCreate notification
DefaultApiCreatePlayerPost /playersAdd a device
DefaultApiCreateSegmentsPost /apps/{app_id}/segmentsCreate Segments
DefaultApiCreateSubscriptionPost /apps/{app_id}/users/by/{alias_label}/{alias_id}/subscriptions
DefaultApiCreateUserPost /apps/{app_id}/users
DefaultApiDeleteAliasDelete /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity/{alias_label_to_delete}
DefaultApiDeletePlayerDelete /players/{player_id}Delete a user record
DefaultApiDeleteSegmentsDelete /apps/{app_id}/segments/{segment_id}Delete Segments
DefaultApiDeleteSubscriptionDelete /apps/{app_id}/subscriptions/{subscription_id}
DefaultApiDeleteUserDelete /apps/{app_id}/users/by/{alias_label}/{alias_id}
DefaultApiEndLiveActivityDelete /apps/{app_id}/live_activities/{activity_id}/token/{subscription_id}Stop Live Activity
DefaultApiExportEventsPost /notifications/{notification_id}/export_events?app_id={app_id}Export CSV of Events
DefaultApiExportPlayersPost /players/csv_export?app_id={app_id}Export CSV of Players
DefaultApiFetchAliasesGet /apps/{app_id}/subscriptions/{subscription_id}/user/identity
DefaultApiFetchUserGet /apps/{app_id}/users/by/{alias_label}/{alias_id}
DefaultApiFetchUserIdentityGet /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity
DefaultApiGetAppGet /apps/{app_id}View an app
DefaultApiGetAppsGet /appsView apps
DefaultApiGetEligibleIamsGet /apps/{app_id}/subscriptions/{subscription_id}/iams
DefaultApiGetNotificationGet /notifications/{notification_id}View notification
DefaultApiGetNotificationHistoryPost /notifications/{notification_id}/historyNotification History
DefaultApiGetNotificationsGet /notificationsView notifications
DefaultApiGetOutcomesGet /apps/{app_id}/outcomesView Outcomes
DefaultApiGetPlayerGet /players/{player_id}View device
DefaultApiGetPlayersGet /playersView devices
DefaultApiIdentifyUserByAliasPatch /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity
DefaultApiIdentifyUserBySubscriptionIdPatch /apps/{app_id}/subscriptions/{subscription_id}/user/identity
DefaultApiTransferSubscriptionPatch /apps/{app_id}/subscriptions/{subscription_id}/owner
DefaultApiUpdateAppPut /apps/{app_id}Update an app
DefaultApiUpdateLiveActivityPost /apps/{app_id}/live_activities/{activity_id}/notificationsUpdate a Live Activity via Push
DefaultApiUpdatePlayerPut /players/{player_id}Edit device
DefaultApiUpdatePlayerTagsPut /apps/{app_id}/users/{external_user_id}Edit tags with external user id
DefaultApiUpdateSubscriptionPatch /apps/{app_id}/subscriptions/{subscription_id}
DefaultApiUpdateUserPatch /apps/{app_id}/users/by/{alias_label}/{alias_id}

Documentation For Models

Documentation For Authorization

Use a OneSignal authentication context for each auth type:

  • AppAuth
  • UserAuth

app_key

  • Type: HTTP Bearer token authentication

Example

appAuth := context.WithValue(context.Background(), onesignal.AppAuth, "APP_KEY_STRING")

user_key

  • Type: HTTP Bearer token authentication

Example

userAuth := context.WithValue(context.Background(), onesignal.UserAuth, "USER_KEY_STRING")

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

[email protected]

# Functions

[]stringAsNotification200Errors is a convenience function that returns []string wrapped in Notification200Errors.
CacheExpires helper function to determine remaining time before repeating a request.
InvalidIdentifierErrorAsNotification200Errors is a convenience function that returns InvalidIdentifierError wrapped in Notification200Errors.
NewAPIClient creates a new API client.
NewAPIResponse returns a new APIResponse object.
NewAPIResponseWithError returns a new APIResponse object with the provided error message.
NewApp instantiates a new App object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewAppWithDefaults instantiates a new App object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewBasicNotification instantiates a new BasicNotification object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewBasicNotificationAllOf instantiates a new BasicNotificationAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewBasicNotificationAllOfAndroidBackgroundLayout instantiates a new BasicNotificationAllOfAndroidBackgroundLayout object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewBasicNotificationAllOfAndroidBackgroundLayoutWithDefaults instantiates a new BasicNotificationAllOfAndroidBackgroundLayout object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewBasicNotificationAllOfWithDefaults instantiates a new BasicNotificationAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewBasicNotificationWithDefaults instantiates a new BasicNotification object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewBeginLiveActivityRequest instantiates a new BeginLiveActivityRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewBeginLiveActivityRequestWithDefaults instantiates a new BeginLiveActivityRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewButton instantiates a new Button object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewButtonWithDefaults instantiates a new Button object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewCancelNotificationSuccessResponse instantiates a new CancelNotificationSuccessResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewCancelNotificationSuccessResponseWithDefaults instantiates a new CancelNotificationSuccessResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewConfiguration returns a new Configuration object.
NewCreateNotificationSuccessResponse instantiates a new CreateNotificationSuccessResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewCreateNotificationSuccessResponseWithDefaults instantiates a new CreateNotificationSuccessResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewCreatePlayerSuccessResponse instantiates a new CreatePlayerSuccessResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewCreatePlayerSuccessResponseWithDefaults instantiates a new CreatePlayerSuccessResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewCreateSegmentConflictResponse instantiates a new CreateSegmentConflictResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewCreateSegmentConflictResponseWithDefaults instantiates a new CreateSegmentConflictResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewCreateSegmentSuccessResponse instantiates a new CreateSegmentSuccessResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewCreateSegmentSuccessResponseWithDefaults instantiates a new CreateSegmentSuccessResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewCreateSubscriptionRequestBody instantiates a new CreateSubscriptionRequestBody object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewCreateSubscriptionRequestBodyWithDefaults instantiates a new CreateSubscriptionRequestBody object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewCreateUserConflictResponse instantiates a new CreateUserConflictResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewCreateUserConflictResponseErrorsInner instantiates a new CreateUserConflictResponseErrorsInner object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewCreateUserConflictResponseErrorsInnerWithDefaults instantiates a new CreateUserConflictResponseErrorsInner object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewCreateUserConflictResponseErrorsItemsMeta instantiates a new CreateUserConflictResponseErrorsItemsMeta object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewCreateUserConflictResponseErrorsItemsMetaWithDefaults instantiates a new CreateUserConflictResponseErrorsItemsMeta object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewCreateUserConflictResponseWithDefaults instantiates a new CreateUserConflictResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewDeletePlayerNotFoundResponse instantiates a new DeletePlayerNotFoundResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewDeletePlayerNotFoundResponseWithDefaults instantiates a new DeletePlayerNotFoundResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewDeletePlayerSuccessResponse instantiates a new DeletePlayerSuccessResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewDeletePlayerSuccessResponseWithDefaults instantiates a new DeletePlayerSuccessResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewDeleteSegmentNotFoundResponse instantiates a new DeleteSegmentNotFoundResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewDeleteSegmentNotFoundResponseWithDefaults instantiates a new DeleteSegmentNotFoundResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewDeleteSegmentSuccessResponse instantiates a new DeleteSegmentSuccessResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewDeleteSegmentSuccessResponseWithDefaults instantiates a new DeleteSegmentSuccessResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewDeliveryData instantiates a new DeliveryData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewDeliveryDataWithDefaults instantiates a new DeliveryData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewExportEventsSuccessResponse instantiates a new ExportEventsSuccessResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewExportEventsSuccessResponseWithDefaults instantiates a new ExportEventsSuccessResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewExportPlayersRequestBody instantiates a new ExportPlayersRequestBody object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewExportPlayersRequestBodyWithDefaults instantiates a new ExportPlayersRequestBody object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewExportPlayersSuccessResponse instantiates a new ExportPlayersSuccessResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewExportPlayersSuccessResponseWithDefaults instantiates a new ExportPlayersSuccessResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewFilter instantiates a new Filter object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewFilterWithDefaults instantiates a new Filter object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGenericError instantiates a new GenericError object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGenericErrorErrorsInner instantiates a new GenericErrorErrorsInner object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGenericErrorErrorsInnerWithDefaults instantiates a new GenericErrorErrorsInner object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGenericErrorWithDefaults instantiates a new GenericError object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGetNotificationRequestBody instantiates a new GetNotificationRequestBody object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGetNotificationRequestBodyWithDefaults instantiates a new GetNotificationRequestBody object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewInlineResponse200 instantiates a new InlineResponse200 object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewInlineResponse2003 instantiates a new InlineResponse2003 object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewInlineResponse2003WithDefaults instantiates a new InlineResponse2003 object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewInlineResponse200WithDefaults instantiates a new InlineResponse200 object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewInlineResponse201 instantiates a new InlineResponse201 object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewInlineResponse201WithDefaults instantiates a new InlineResponse201 object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewInlineResponse202 instantiates a new InlineResponse202 object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewInlineResponse202WithDefaults instantiates a new InlineResponse202 object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewInvalidIdentifierError instantiates a new InvalidIdentifierError object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewInvalidIdentifierErrorWithDefaults instantiates a new InvalidIdentifierError object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewNotification instantiates a new Notification object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewNotificationAllOf instantiates a new NotificationAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewNotificationAllOfWithDefaults instantiates a new NotificationAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewNotificationHistorySuccessResponse instantiates a new NotificationHistorySuccessResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewNotificationHistorySuccessResponseWithDefaults instantiates a new NotificationHistorySuccessResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewNotificationSlice instantiates a new NotificationSlice object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewNotificationSliceWithDefaults instantiates a new NotificationSlice object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewNotificationWithDefaults instantiates a new Notification object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewNotificationWithMeta instantiates a new NotificationWithMeta object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewNotificationWithMetaAllOf instantiates a new NotificationWithMetaAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewNotificationWithMetaAllOfWithDefaults instantiates a new NotificationWithMetaAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewNotificationWithMetaWithDefaults instantiates a new NotificationWithMeta object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewOperator instantiates a new Operator object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewOperatorWithDefaults instantiates a new Operator object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewOutcomeData instantiates a new OutcomeData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewOutcomeDataWithDefaults instantiates a new OutcomeData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewOutcomesData instantiates a new OutcomesData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewOutcomesDataWithDefaults instantiates a new OutcomesData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewPlatformDeliveryData instantiates a new PlatformDeliveryData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewPlatformDeliveryDataEmailAllOf instantiates a new PlatformDeliveryDataEmailAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewPlatformDeliveryDataEmailAllOfWithDefaults instantiates a new PlatformDeliveryDataEmailAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewPlatformDeliveryDataSmsAllOf instantiates a new PlatformDeliveryDataSmsAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewPlatformDeliveryDataSmsAllOfWithDefaults instantiates a new PlatformDeliveryDataSmsAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewPlatformDeliveryDataWithDefaults instantiates a new PlatformDeliveryData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewPlayer instantiates a new Player object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewPlayerNotificationTarget instantiates a new PlayerNotificationTarget object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewPlayerNotificationTargetIncludeAliases instantiates a new PlayerNotificationTargetIncludeAliases object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewPlayerNotificationTargetIncludeAliasesWithDefaults instantiates a new PlayerNotificationTargetIncludeAliases object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewPlayerNotificationTargetWithDefaults instantiates a new PlayerNotificationTarget object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewPlayerSlice instantiates a new PlayerSlice object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewPlayerSliceWithDefaults instantiates a new PlayerSlice object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewPlayerWithDefaults instantiates a new Player object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewPropertiesDeltas instantiates a new PropertiesDeltas object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewPropertiesDeltasWithDefaults instantiates a new PropertiesDeltas object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewPropertiesObject instantiates a new PropertiesObject object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewPropertiesObjectWithDefaults instantiates a new PropertiesObject object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewPurchase instantiates a new Purchase object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewPurchaseWithDefaults instantiates a new Purchase object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewRateLimiterError instantiates a new RateLimiterError object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewRateLimiterErrorWithDefaults instantiates a new RateLimiterError object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewSegment instantiates a new Segment object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewSegmentNotificationTarget instantiates a new SegmentNotificationTarget object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewSegmentNotificationTargetWithDefaults instantiates a new SegmentNotificationTarget object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewSegmentWithDefaults instantiates a new Segment object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewStringMap instantiates a new StringMap object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewStringMapWithDefaults instantiates a new StringMap object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewSubscriptionObject instantiates a new SubscriptionObject object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewSubscriptionObjectWithDefaults instantiates a new SubscriptionObject object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewTransferSubscriptionRequestBody instantiates a new TransferSubscriptionRequestBody object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewTransferSubscriptionRequestBodyWithDefaults instantiates a new TransferSubscriptionRequestBody object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewUpdateLiveActivityRequest instantiates a new UpdateLiveActivityRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewUpdateLiveActivityRequestWithDefaults instantiates a new UpdateLiveActivityRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewUpdateLiveActivitySuccessResponse instantiates a new UpdateLiveActivitySuccessResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewUpdateLiveActivitySuccessResponseWithDefaults instantiates a new UpdateLiveActivitySuccessResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewUpdatePlayerSuccessResponse instantiates a new UpdatePlayerSuccessResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewUpdatePlayerSuccessResponseWithDefaults instantiates a new UpdatePlayerSuccessResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewUpdatePlayerTagsRequestBody instantiates a new UpdatePlayerTagsRequestBody object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewUpdatePlayerTagsRequestBodyWithDefaults instantiates a new UpdatePlayerTagsRequestBody object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewUpdatePlayerTagsSuccessResponse instantiates a new UpdatePlayerTagsSuccessResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewUpdatePlayerTagsSuccessResponseWithDefaults instantiates a new UpdatePlayerTagsSuccessResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewUpdateSubscriptionRequestBody instantiates a new UpdateSubscriptionRequestBody object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewUpdateSubscriptionRequestBodyWithDefaults instantiates a new UpdateSubscriptionRequestBody object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewUpdateUserRequest instantiates a new UpdateUserRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewUpdateUserRequestWithDefaults instantiates a new UpdateUserRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewUser instantiates a new User object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewUserIdentityRequestBody instantiates a new UserIdentityRequestBody object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewUserIdentityRequestBodyWithDefaults instantiates a new UserIdentityRequestBody object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewUserIdentityResponse instantiates a new UserIdentityResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewUserIdentityResponseWithDefaults instantiates a new UserIdentityResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewUserSubscriptionOptions instantiates a new UserSubscriptionOptions object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewUserSubscriptionOptionsWithDefaults instantiates a new UserSubscriptionOptions object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewUserWithDefaults instantiates a new User object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
PtrBool is a helper routine that returns a pointer to given boolean value.
PtrFloat32 is a helper routine that returns a pointer to given float value.
PtrFloat64 is a helper routine that returns a pointer to given float value.
PtrInt is a helper routine that returns a pointer to given integer value.
PtrInt32 is a helper routine that returns a pointer to given integer value.
PtrInt64 is a helper routine that returns a pointer to given integer value.
PtrString is a helper routine that returns a pointer to given string value.
PtrTime is helper routine that returns a pointer to given Time value.

# Variables

AppAuth takes a string oauth2 access token as authentication for the request.
ContextAPIKeys takes a string apikey as authentication for the request.
ContextBasicAuth takes BasicAuth as authentication for the request.
ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request.
ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
ContextOperationServerIndices uses a server configuration from the index mapping.
ContextOperationServerVariables overrides a server configuration variables using operation specific values.
ContextServerIndex uses a server configuration from the index.
ContextServerVariables overrides a server configuration variables.
UserAuth takes a string oauth2 access token as authentication for the request.

# Structs

No description provided by the author
No description provided by the author
APIClient manages communication with the OneSignal API v1.2.2 In most cases there should be only one, shared, APIClient.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
APIKey provides API key based authentication to a request passed via context using ContextAPIKey.
APIResponse stores the API response returned by the server.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
App struct for App.
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth.
BasicNotification struct for BasicNotification.
BasicNotificationAllOf struct for BasicNotificationAllOf.
BasicNotificationAllOfAndroidBackgroundLayout Channel: Push Notifications Platform: Android Allowing setting a background image for the notification.
BeginLiveActivityRequest struct for BeginLiveActivityRequest.
Button struct for Button.
CancelNotificationSuccessResponse struct for CancelNotificationSuccessResponse.
Configuration stores the configuration of the API client.
CreateNotificationSuccessResponse struct for CreateNotificationSuccessResponse.
CreatePlayerSuccessResponse struct for CreatePlayerSuccessResponse.
CreateSegmentConflictResponse struct for CreateSegmentConflictResponse.
CreateSegmentSuccessResponse struct for CreateSegmentSuccessResponse.
CreateSubscriptionRequestBody struct for CreateSubscriptionRequestBody.
CreateUserConflictResponse struct for CreateUserConflictResponse.
CreateUserConflictResponseErrorsInner struct for CreateUserConflictResponseErrorsInner.
CreateUserConflictResponseErrorsItemsMeta struct for CreateUserConflictResponseErrorsItemsMeta.
DeletePlayerNotFoundResponse struct for DeletePlayerNotFoundResponse.
DeletePlayerSuccessResponse struct for DeletePlayerSuccessResponse.
DeleteSegmentNotFoundResponse struct for DeleteSegmentNotFoundResponse.
DeleteSegmentSuccessResponse struct for DeleteSegmentSuccessResponse.
DeliveryData struct for DeliveryData.
ExportEventsSuccessResponse struct for ExportEventsSuccessResponse.
ExportPlayersRequestBody struct for ExportPlayersRequestBody.
ExportPlayersSuccessResponse struct for ExportPlayersSuccessResponse.
Filter struct for Filter.
FilterExpressions struct for FilterExpressions.
GenericError struct for GenericError.
GenericErrorErrorsInner struct for GenericErrorErrorsInner.
GenericOpenAPIError Provides access to the body, error and model on returned errors.
GetNotificationRequestBody struct for GetNotificationRequestBody.
InlineResponse200 struct for InlineResponse200.
InlineResponse2003 struct for InlineResponse2003.
InlineResponse201 struct for InlineResponse201.
InlineResponse202 struct for InlineResponse202.
InvalidIdentifierError struct for InvalidIdentifierError.
Notification struct for Notification.
Notification200Errors - struct for Notification200Errors.
NotificationAllOf struct for NotificationAllOf.
NotificationHistorySuccessResponse struct for NotificationHistorySuccessResponse.
NotificationSlice struct for NotificationSlice.
NotificationTarget struct for NotificationTarget.
NotificationWithMeta struct for NotificationWithMeta.
NotificationWithMetaAllOf struct for NotificationWithMetaAllOf.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Operator struct for Operator.
OutcomeData struct for OutcomeData.
OutcomesData struct for OutcomesData.
PlatformDeliveryData Hash of delivery statistics broken out by target device platform.
PlatformDeliveryDataEmailAllOf struct for PlatformDeliveryDataEmailAllOf.
PlatformDeliveryDataSmsAllOf struct for PlatformDeliveryDataSmsAllOf.
Player struct for Player.
PlayerNotificationTarget struct for PlayerNotificationTarget.
PlayerNotificationTargetIncludeAliases struct for PlayerNotificationTargetIncludeAliases.
PlayerSlice struct for PlayerSlice.
PropertiesDeltas struct for PropertiesDeltas.
PropertiesObject struct for PropertiesObject.
Purchase struct for Purchase.
RateLimiterError struct for RateLimiterError.
Segment struct for Segment.
SegmentNotificationTarget struct for SegmentNotificationTarget.
ServerConfiguration stores the information about a server.
ServerVariable stores the information about a server variable.
StringMap struct for StringMap.
SubscriptionObject struct for SubscriptionObject.
TransferSubscriptionRequestBody struct for TransferSubscriptionRequestBody.
UpdateLiveActivityRequest struct for UpdateLiveActivityRequest.
UpdateLiveActivitySuccessResponse struct for UpdateLiveActivitySuccessResponse.
UpdatePlayerSuccessResponse struct for UpdatePlayerSuccessResponse.
UpdatePlayerTagsRequestBody struct for UpdatePlayerTagsRequestBody.
UpdatePlayerTagsSuccessResponse struct for UpdatePlayerTagsSuccessResponse.
UpdateSubscriptionRequestBody struct for UpdateSubscriptionRequestBody.
UpdateUserRequest struct for UpdateUserRequest.
User struct for User.
UserIdentityRequestBody struct for UserIdentityRequestBody.
UserIdentityResponse struct for UserIdentityResponse.
UserSubscriptionOptions struct for UserSubscriptionOptions.

# Type aliases

DefaultApiService DefaultApi service.
ServerConfigurations stores multiple ServerConfiguration items.