Skip to content

Releases: OneSignal/onesignal-go-api

5.2.0-beta1

09 Jul 22:01
e544511
Compare
Choose a tag to compare

Features

  • add disable_email_click_tracking Notification API parameter

5.1.1-beta1

28 Jun 01:54
94468a5
Compare
Choose a tag to compare

Changes

  • use OrganizationApiKey field in client

5.1.0-beta1

06 Jun 21:20
8244227
Compare
Choose a tag to compare

User Model beta release

⚠️ This release includes breaking changes. Please test before using in production.

Changes

Auth Updates

  • ⚠️ Replace AppAuth with RestApiKey
  • ⚠️ Replace UserAuth with OrganizationApiKey

API Endpoints

Added Endpoints

  • CreateAlias — PATCH /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity
  • CreateAliasBySubscription — PATCH /apps/{app_id}/subscriptions/{subscription_id}/user/identity
  • CreateSegment — POST /apps/{app_id}/segments
  • ExportSubscriptions — POST /players/csv_export?app_id={app_id}
  • GetAliases — GET /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity
  • GetAliasesBySubscription — GET /apps/{app_id}/subscriptions/{subscription_id}/user/identity
  • GetSegments — GET /apps/{app_id}/segments
  • GetUser — GET /apps/{app_id}/users/by/{alias_label}/{alias_id}
  • UnsubscribeEmailWithToken — POST /apps/{app_id}/notifications/{notification_id}/unsubscribe

Removed Endpoints

  • BeginLiveActivity — POST /apps/{app_id}/live_activities/{activity_id}/token
  • CreatePlayer — POST /players
  • CreateSegments — POST /apps/{app_id}/segments
  • DeletePlayer — DELETE /players/{player_id}
  • DeleteSegments — DELETE /apps/{app_id}/segments/{segment_id}
  • EndLiveActivity — DELETE /apps/{app_id}/live_activities/{activity_id}/token/{subscription_id}
  • ExportPlayers — POST /players/csv_export?app_id={app_id}
  • FetchAliases — GET /apps/{app_id}/subscriptions/{subscription_id}/user/identity
  • FetchUser — GET /apps/{app_id}/users/by/{alias_label}/{alias_id}
  • FetchUserIdentity — GET /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity
  • GetEligibleIams — GET /apps/{app_id}/subscriptions/{subscription_id}/iams
  • GetPlayer — GET /players/{player_id}
  • GetPlayers — GET /players
  • IdentifyUserByAlias — PATCH /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity
  • IdentifyUserBySubscriptionId — PATCH /apps/{app_id}/subscriptions/{subscription_id}/user/identity
  • UpdatePlayer — PUT /players/{player_id}
  • UpdatePlayerTags — PUT /apps/{app_id}/users/{external_user_id}

Models

Added Models

  • ExportSubscriptionsRequestBody
  • ExportSubscriptionsSuccessResponse
  • FilterExpression
  • GenericSuccessBoolResponse
  • GetNotificationHistoryRequestBody
  • GetSegmentsSuccessResponse
  • LanguageStringMap
  • PropertiesBody
  • RateLimitError
  • SegmentData
  • Subscription
  • SubscriptionBody
  • SubscriptionNotificationTarget
  • UserIdentityBody
  • WebButton

Removed Models

  • BeginLiveActivityRequest
  • CancelNotificationSuccessResponse
  • CreatePlayerSuccessResponse
  • CreateSubscriptionRequestBody
  • DeletePlayerNotFoundResponse
  • DeletePlayerSuccessResponse
  • DeleteSegmentNotFoundResponse
  • DeleteSegmentSuccessResponse
  • ExportPlayersRequestBody
  • ExportPlayersSuccessResponse
  • FilterExpressions
  • GenericErrorErrorsInner
  • GetNotificationRequestBody
  • InlineResponse200
  • InlineResponse2003
  • InlineResponse201
  • InlineResponse202
  • InvalidIdentifierError
  • Notification200Errors
  • Player
  • PlayerNotificationTarget
  • PlayerNotificationTargetIncludeAliases
  • PlayerSlice
  • RateLimiterError
  • StringMap
  • SubscriptionObject
  • UpdatePlayerSuccessResponse
  • UpdatePlayerTagsRequestBody
  • UpdatePlayerTagsSuccessResponse
  • UpdateSubscriptionRequestBody
  • UserIdentityRequestBody
  • UserIdentityResponse
  • UserSubscriptionOptions

2.2.1

04 Jun 20:12
5d93cb2
Compare
Choose a tag to compare

Fixes

  • set notification_type to be type int32, instead of f32, on SubscriptionObject

2.2.0

26 Mar 16:55
eee0d4f
Compare
Choose a tag to compare

Features

  • deprecate external_id in favor of idempotency_key as basenotification field

Fixes

  • favor Key auth prefix over Bearer

2.1.0

22 Jan 17:20
682a7ad
Compare
Choose a tag to compare

Features

  • Add authMethod for deleteUser

Fixes

  • Set base URL to https://api.onesignal.com/

2.0.3 Release

28 Aug 23:55
e359b34
Compare
Choose a tag to compare

Added:

  • user model endpoints
  • live activities
  • errors to all the responses

Fixed:
various bugs

2.0.1 Release

07 Jul 21:48
53119c6
Compare
Choose a tag to compare

Updates to properly publish the package on the go package store.
Full Changelog: v2.0.0...v2.0.1

2.0.0 Release

07 Jul 20:37
103d02f
Compare
Choose a tag to compare

This version contains updates to use the new User Centric APIs. Please refer to the README for updated integration details.

Full Changelog: v1.0.4...v2.0.0

1.0.4 Release

14 Jul 19:45
329fe1a
Compare
Choose a tag to compare

What's Fixed

  • SMS creation issue where name is required field
  • pkg.go.dev not recognizing the LICENSE (#13)

What's Changed

Full Changelog: v1.0.3...v1.0.4