Skip to content

Commit

Permalink
Merge pull request #50 from OneSignal/sync-v2.1.0
Browse files Browse the repository at this point in the history
feat: update with API v1.3.0 changes
  • Loading branch information
sherwinski authored Dec 4, 2024
2 parents 147244e + a8fa715 commit 65023e3
Show file tree
Hide file tree
Showing 92 changed files with 157 additions and 142 deletions.
10 changes: 5 additions & 5 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.2.2
- SDK version: 2.0.2
- API version: 1.3.0
- SDK version: 2.1.0
- Build package: org.openapitools.codegen.languages.CSharpNetCoreClientCodegen
For more information, please visit [https://onesignal.com](https://onesignal.com)

Expand Down Expand Up @@ -72,7 +72,7 @@ namespace Example
// Configure configuration with user_key Bearer token for authorization to access endpoints
// that require the OneSignal User Auth Key.
var userConfig = new Configuration();
userConfig.BasePath = "https://onesignal.com/api/v1";
userConfig.BasePath = "https://api.onesignal.com";
userConfig.AccessToken = "USER_AUTH_KEY";

var userInstance = new DefaultApi(userConfig);
Expand All @@ -95,7 +95,7 @@ namespace Example
// Configure configuration with app_key Bearer token for authorization to access endpoints
// that require the OneSignal App REST API Key.
var appConfig = new Configuration();
appConfig.BasePath = "https://onesignal.com/api/v1";
appConfig.BasePath = "https://api.onesignal.com";
appConfig.AccessToken = "REST_API_KEY";

var appInstance = new DefaultApi(appConfig);
Expand All @@ -122,7 +122,7 @@ namespace Example
<a name="documentation-for-api-endpoints"></a>
## Documentation for API Endpoints

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

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
Expand Down
81 changes: 42 additions & 39 deletions docs/DefaultApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# OneSignalApi.Api.DefaultApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down Expand Up @@ -66,7 +66,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: app_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -145,7 +145,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: app_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -223,7 +223,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: user_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -299,7 +299,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: app_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -375,7 +375,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: app_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -452,7 +452,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: app_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -531,7 +531,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: app_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -614,7 +614,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: app_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -694,7 +694,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: app_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -776,7 +776,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: app_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -855,7 +855,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: app_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -934,7 +934,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: app_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -1011,7 +1011,10 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: app_key
config.AccessToken = "YOUR_BEARER_TOKEN";

var apiInstance = new DefaultApi(config);
var appId = "appId_example"; // string |
var aliasLabel = "aliasLabel_example"; // string |
Expand Down Expand Up @@ -1046,7 +1049,7 @@ void (empty response body)

### Authorization

No authorization required
[app_key](../README.md#app_key)

### HTTP request headers

Expand Down Expand Up @@ -1087,7 +1090,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: app_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -1166,7 +1169,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: app_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -1245,7 +1248,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: app_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -1323,7 +1326,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: app_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -1399,7 +1402,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: app_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -1478,7 +1481,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: app_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -1557,7 +1560,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: user_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -1633,7 +1636,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: user_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -1705,7 +1708,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: app_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -1782,7 +1785,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: app_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -1860,7 +1863,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: app_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -1938,7 +1941,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: app_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -2020,7 +2023,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: app_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -2106,7 +2109,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: app_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -2186,7 +2189,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: app_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -2266,7 +2269,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: app_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -2348,7 +2351,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: app_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -2428,7 +2431,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: app_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -2508,7 +2511,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: user_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -2586,7 +2589,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: app_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -2666,7 +2669,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: app_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -2745,7 +2748,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: app_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -2826,7 +2829,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: app_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down Expand Up @@ -2905,7 +2908,7 @@ namespace Example
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://onesignal.com/api/v1";
config.BasePath = "https://api.onesignal.com";
// Configure Bearer token for authorization: app_key
config.AccessToken = "YOUR_BEARER_TOKEN";

Expand Down
Loading

0 comments on commit 65023e3

Please sign in to comment.