Skip to content

Commit

Permalink
Update .NET API
Browse files Browse the repository at this point in the history
  • Loading branch information
OneSignal committed Apr 18, 2023
1 parent f23be73 commit 4b018ef
Show file tree
Hide file tree
Showing 120 changed files with 9,623 additions and 1,123 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/Zapier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
# Triggers the workflow on push or pull request events but only for the "main" branch
issues:
types: [closed]

permissions:
issues: read

Expand All @@ -31,4 +31,4 @@ jobs:
--header 'Accept: application/json' \
--data-raw '{
"task_name" : "$ISSUE_TITLE"
}'
}'
39 changes: 37 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

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

- API version: 1.0.2
- SDK version: 1.0.4
- API version: 1.2.1
- SDK version: 2.0.0
- Build package: org.openapitools.codegen.languages.CSharpNetCoreClientCodegen
For more information, please visit [https://onesignal.com](https://onesignal.com)

Expand Down Expand Up @@ -132,22 +132,36 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**CreateNotification**](docs/DefaultApi.md#createnotification) | **POST** /notifications | Create notification
*DefaultApi* | [**CreatePlayer**](docs/DefaultApi.md#createplayer) | **POST** /players | Add a device
*DefaultApi* | [**CreateSegments**](docs/DefaultApi.md#createsegments) | **POST** /apps/{app_id}/segments | Create Segments
*DefaultApi* | [**CreateSubscription**](docs/DefaultApi.md#createsubscription) | **POST** /apps/{app_id}/users/by/{alias_label}/{alias_id}/subscriptions |
*DefaultApi* | [**CreateUser**](docs/DefaultApi.md#createuser) | **POST** /apps/{app_id}/users |
*DefaultApi* | [**DeleteAlias**](docs/DefaultApi.md#deletealias) | **DELETE** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity/{alias_label_to_delete} |
*DefaultApi* | [**DeletePlayer**](docs/DefaultApi.md#deleteplayer) | **DELETE** /players/{player_id} | Delete a user record
*DefaultApi* | [**DeleteSegments**](docs/DefaultApi.md#deletesegments) | **DELETE** /apps/{app_id}/segments/{segment_id} | Delete Segments
*DefaultApi* | [**DeleteSubscription**](docs/DefaultApi.md#deletesubscription) | **DELETE** /apps/{app_id}/subscriptions/{subscription_id} |
*DefaultApi* | [**DeleteUser**](docs/DefaultApi.md#deleteuser) | **DELETE** /apps/{app_id}/users/by/{alias_label}/{alias_id} |
*DefaultApi* | [**EndLiveActivity**](docs/DefaultApi.md#endliveactivity) | **DELETE** /apps/{app_id}/live_activities/{activity_id}/token/{subscription_id} | Stop Live Activity
*DefaultApi* | [**ExportPlayers**](docs/DefaultApi.md#exportplayers) | **POST** /players/csv_export?app_id={app_id} | CSV export
*DefaultApi* | [**FetchAliases**](docs/DefaultApi.md#fetchaliases) | **GET** /apps/{app_id}/subscriptions/{subscription_id}/user/identity |
*DefaultApi* | [**FetchUser**](docs/DefaultApi.md#fetchuser) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id} |
*DefaultApi* | [**FetchUserIdentity**](docs/DefaultApi.md#fetchuseridentity) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity |
*DefaultApi* | [**GetApp**](docs/DefaultApi.md#getapp) | **GET** /apps/{app_id} | View an app
*DefaultApi* | [**GetApps**](docs/DefaultApi.md#getapps) | **GET** /apps | View apps
*DefaultApi* | [**GetEligibleIams**](docs/DefaultApi.md#geteligibleiams) | **GET** /apps/{app_id}/subscriptions/{subscription_id}/iams |
*DefaultApi* | [**GetNotification**](docs/DefaultApi.md#getnotification) | **GET** /notifications/{notification_id} | View notification
*DefaultApi* | [**GetNotificationHistory**](docs/DefaultApi.md#getnotificationhistory) | **POST** /notifications/{notification_id}/history | Notification History
*DefaultApi* | [**GetNotifications**](docs/DefaultApi.md#getnotifications) | **GET** /notifications | View notifications
*DefaultApi* | [**GetOutcomes**](docs/DefaultApi.md#getoutcomes) | **GET** /apps/{app_id}/outcomes | View Outcomes
*DefaultApi* | [**GetPlayer**](docs/DefaultApi.md#getplayer) | **GET** /players/{player_id} | View device
*DefaultApi* | [**GetPlayers**](docs/DefaultApi.md#getplayers) | **GET** /players | View devices
*DefaultApi* | [**IdentifyUserByAlias**](docs/DefaultApi.md#identifyuserbyalias) | **PATCH** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity |
*DefaultApi* | [**IdentifyUserBySubscriptionId**](docs/DefaultApi.md#identifyuserbysubscriptionid) | **PATCH** /apps/{app_id}/subscriptions/{subscription_id}/user/identity |
*DefaultApi* | [**TransferSubscription**](docs/DefaultApi.md#transfersubscription) | **PATCH** /apps/{app_id}/subscriptions/{subscription_id}/owner |
*DefaultApi* | [**UpdateApp**](docs/DefaultApi.md#updateapp) | **PUT** /apps/{app_id} | Update an app
*DefaultApi* | [**UpdateLiveActivity**](docs/DefaultApi.md#updateliveactivity) | **POST** /apps/{app_id}/live_activities/{activity_id}/notifications | Update a Live Activity via Push
*DefaultApi* | [**UpdatePlayer**](docs/DefaultApi.md#updateplayer) | **PUT** /players/{player_id} | Edit device
*DefaultApi* | [**UpdatePlayerTags**](docs/DefaultApi.md#updateplayertags) | **PUT** /apps/{app_id}/users/{external_user_id} | Edit tags with external user id
*DefaultApi* | [**UpdateSubscription**](docs/DefaultApi.md#updatesubscription) | **PATCH** /apps/{app_id}/subscriptions/{subscription_id} |
*DefaultApi* | [**UpdateUser**](docs/DefaultApi.md#updateuser) | **PATCH** /apps/{app_id}/users/by/{alias_label}/{alias_id} |


<a name="documentation-for-models"></a>
Expand All @@ -165,6 +179,10 @@ Class | Method | HTTP request | Description
- [Model.CreatePlayerSuccessResponse](docs/CreatePlayerSuccessResponse.md)
- [Model.CreateSegmentConflictResponse](docs/CreateSegmentConflictResponse.md)
- [Model.CreateSegmentSuccessResponse](docs/CreateSegmentSuccessResponse.md)
- [Model.CreateSubscriptionRequestBody](docs/CreateSubscriptionRequestBody.md)
- [Model.CreateUserConflictResponse](docs/CreateUserConflictResponse.md)
- [Model.CreateUserConflictResponseErrorsInner](docs/CreateUserConflictResponseErrorsInner.md)
- [Model.CreateUserConflictResponseErrorsItemsMeta](docs/CreateUserConflictResponseErrorsItemsMeta.md)
- [Model.DeletePlayerNotFoundResponse](docs/DeletePlayerNotFoundResponse.md)
- [Model.DeletePlayerSuccessResponse](docs/DeletePlayerSuccessResponse.md)
- [Model.DeleteSegmentNotFoundResponse](docs/DeleteSegmentNotFoundResponse.md)
Expand All @@ -175,6 +193,12 @@ Class | Method | HTTP request | Description
- [Model.Filter](docs/Filter.md)
- [Model.FilterExpressions](docs/FilterExpressions.md)
- [Model.GetNotificationRequestBody](docs/GetNotificationRequestBody.md)
- [Model.IdentifyUserConflictResponse](docs/IdentifyUserConflictResponse.md)
- [Model.IdentifyUserConflictResponseErrorsInner](docs/IdentifyUserConflictResponseErrorsInner.md)
- [Model.InlineResponse200](docs/InlineResponse200.md)
- [Model.InlineResponse2003](docs/InlineResponse2003.md)
- [Model.InlineResponse201](docs/InlineResponse201.md)
- [Model.InlineResponse202](docs/InlineResponse202.md)
- [Model.InvalidIdentifierError](docs/InvalidIdentifierError.md)
- [Model.Notification](docs/Notification.md)
- [Model.Notification200Errors](docs/Notification200Errors.md)
Expand All @@ -192,16 +216,27 @@ Class | Method | HTTP request | Description
- [Model.PlatformDeliveryDataSmsAllOf](docs/PlatformDeliveryDataSmsAllOf.md)
- [Model.Player](docs/Player.md)
- [Model.PlayerNotificationTarget](docs/PlayerNotificationTarget.md)
- [Model.PlayerNotificationTargetIncludeAliases](docs/PlayerNotificationTargetIncludeAliases.md)
- [Model.PlayerSlice](docs/PlayerSlice.md)
- [Model.PropertiesDeltas](docs/PropertiesDeltas.md)
- [Model.PropertiesObject](docs/PropertiesObject.md)
- [Model.Purchase](docs/Purchase.md)
- [Model.Segment](docs/Segment.md)
- [Model.SegmentNotificationTarget](docs/SegmentNotificationTarget.md)
- [Model.StringMap](docs/StringMap.md)
- [Model.SubscriptionObject](docs/SubscriptionObject.md)
- [Model.TransferSubscriptionRequestBody](docs/TransferSubscriptionRequestBody.md)
- [Model.UpdateLiveActivityRequest](docs/UpdateLiveActivityRequest.md)
- [Model.UpdateLiveActivitySuccessResponse](docs/UpdateLiveActivitySuccessResponse.md)
- [Model.UpdatePlayerSuccessResponse](docs/UpdatePlayerSuccessResponse.md)
- [Model.UpdatePlayerTagsRequestBody](docs/UpdatePlayerTagsRequestBody.md)
- [Model.UpdatePlayerTagsSuccessResponse](docs/UpdatePlayerTagsSuccessResponse.md)
- [Model.UpdateSubscriptionRequestBody](docs/UpdateSubscriptionRequestBody.md)
- [Model.UpdateUserRequest](docs/UpdateUserRequest.md)
- [Model.User](docs/User.md)
- [Model.UserIdentityRequestBody](docs/UserIdentityRequestBody.md)
- [Model.UserIdentityResponse](docs/UserIdentityResponse.md)
- [Model.UserSubscriptionOptions](docs/UserSubscriptionOptions.md)


<a name="documentation-for-authorization"></a>
Expand Down
2 changes: 2 additions & 0 deletions docs/BasicNotification.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Name | Type | Description | Notes
**IncludeChromeRegIds** | **List&lt;string&gt;** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Chrome App registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional]
**IncludeChromeWebRegIds** | **List&lt;string&gt;** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Chrome Web Push registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional]
**IncludeAndroidRegIds** | **List&lt;string&gt;** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Android device registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional]
**IncludeAliases** | [**PlayerNotificationTargetIncludeAliases**](PlayerNotificationTargetIncludeAliases.md) | | [optional]
**TargetChannel** | **string** | | [optional]
**Id** | **string** | | [optional]
**Value** | **int** | | [optional] [readonly]
**Name** | **string** | Required for SMS Messages. An identifier for tracking message within the OneSignal dashboard or export analytics. Not shown to end user. | [optional]
Expand Down
4 changes: 2 additions & 2 deletions docs/CreateNotificationSuccessResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **string** | |
**Recipients** | **int** | Estimated number of subscribers targetted by notification. |
**Id** | **string** | | [optional]
**Recipients** | **int** | Estimated number of subscribers targetted by notification. | [optional]
**ExternalId** | **string** | | [optional]
**Errors** | [**Notification200Errors**](Notification200Errors.md) | | [optional]

Expand Down
11 changes: 11 additions & 0 deletions docs/CreateSubscriptionRequestBody.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# OneSignalApi.Model.CreateSubscriptionRequestBody

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Subscription** | [**SubscriptionObject**](SubscriptionObject.md) | | [optional]
**RetainPreviousOwner** | **bool** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

10 changes: 10 additions & 0 deletions docs/CreateUserConflictResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# OneSignalApi.Model.CreateUserConflictResponse

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Errors** | [**List&lt;CreateUserConflictResponseErrorsInner&gt;**](CreateUserConflictResponseErrorsInner.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

12 changes: 12 additions & 0 deletions docs/CreateUserConflictResponseErrorsInner.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# OneSignalApi.Model.CreateUserConflictResponseErrorsInner

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Code** | **string** | | [optional]
**Title** | **string** | | [optional]
**Meta** | [**CreateUserConflictResponseErrorsItemsMeta**](CreateUserConflictResponseErrorsItemsMeta.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

10 changes: 10 additions & 0 deletions docs/CreateUserConflictResponseErrorsItemsMeta.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# OneSignalApi.Model.CreateUserConflictResponseErrorsItemsMeta

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ConflictingAliases** | **Object** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Loading

0 comments on commit 4b018ef

Please sign in to comment.