Skip to content

Releases: OneSignal/onesignal-php-api

5.2.0-beta1

09 Jul 22:00
ecfd578
Compare
Choose a tag to compare

Features

  • add disable_email_click_tracking Notification API parameter
  • add nullable type hints to models and API

5.1.0-beta1

06 Jun 21:18
98b6743
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 setAppKeyToken on Configuration::getDefaultConfiguration with setRestApiKeyToken
  • ⚠️ Replace setUserKeyToken on Configuration::getDefaultConfiguration with setOrganizationApiKeyToken

Added

  • Methods:
    • createAlias - PATCH /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity
    • createAliasBySubscription - PATCH /apps/{app_id}/subscriptions/{subscription_id}/user/identity
    • 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
  • Models:
    • ExportSubscriptionsRequestBody
    • ExportSubscriptionsSuccessResponse
    • FilterExpression
    • GenericSuccessBoolResponse
    • GetNotificationHistoryRequestBody
    • GetSegmentsSuccessResponse
    • LanguageStringMap
    • PropertiesBody
    • RateLimitError
    • SegmentData
    • Subscription
    • SubscriptionBody
    • SubscriptionNotificationTarget
    • UserIdentityBody
    • WebButton

Removed

  • Methods:
    • 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:
    • BeginLiveActivityRequest
    • CancelNotificationSuccessResponse
    • CreatePlayerSuccessResponse
    • CreateSubscriptionRequestBody
    • DeletePlayerNotFoundResponse
    • DeletePlayerSuccessResponse
    • DeleteSegmentNotFoundResponse
    • DeleteSegmentSuccessResponse
    • ExportPlayersRequestBody
    • ExportPlayersSuccessResponse
    • FilterExpressions
    • GenericErrorErrorsInner
    • GetNotificationRequestBody
    • InlineResponse200
    • InlineResponse2003
    • InlineResponse201
    • InlineResponse202
    • InvalidIdentifierError
    • Player
    • PlayerNotificationTarget
    • PlayerNotificationTargetIncludeAliases
    • PlayerSlice
    • RateLimiterError
    • StringMap
    • SubscriptionObject
    • UpdatePlayerSuccessResponse
    • UpdatePlayerTagsRequestBody
    • UpdatePlayerTagsSuccessResponse
    • UpdateSubscriptionRequestBody
    • UserIdentityRequestBody
    • UserIdentityResponse
    • UserSubscriptionOptions

Modified

  • Methods:
    • createSegments renamed to createSegment - POST /apps/{app_id}/segments
    • deleteSegments renamed to deleteSegment - DELETE /apps/{app_id}/segments/{segment_id}

2.2.1

04 Jun 20:13
d1465f0
Compare
Choose a tag to compare

Fixes

  • set notification_type to be type int, instead of float, on SubscriptionObject

2.2.0

26 Mar 17:16
f1afa7e
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:22
95d4c55
Compare
Choose a tag to compare

Features

  • Add authMethod for deleteUserRequest

Fixes

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