Skip to content

Commit f1afa7e

Browse files
authored
Merge pull request #27 from OneSignal/api
Add v2.2.0 package updates
2 parents 95d4c55 + 26d273d commit f1afa7e

File tree

83 files changed

+297
-165
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+297
-165
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -551,5 +551,5 @@ requires app_key and which user_key. You can get the value of these keys from yo
551551
devrel@onesignal.com
552552

553553

554-
- API version: `1.3.0`
555-
- Package version: `2.1.0`
554+
- API version: `1.4.0`
555+
- Package version: `2.2.0`

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "onesignal/onesignal-php-api",
3-
"version": "2.1.0",
3+
"version": "2.2.0",
44
"description": "A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com",
55
"keywords": [
66
"onesignal",

docs/Model/BasicNotification.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ Name | Type | Description | Notes
3434
**is_chrome** | **bool** | This flag is not used for web push Please see isChromeWeb for sending to web push users. This flag only applies to Google Chrome Apps & Extensions. Indicates whether to send to all devices registered under your app's Google Chrome Apps & Extension platform. | [optional]
3535
**channel_for_external_user_ids** | **string** | Indicates if the message type when targeting with include_external_user_ids for cases where an email, sms, and/or push subscribers have the same external user id. Example: Use the string \"push\" to indicate you are sending a push notification or the string \"email\"for sending emails or \"sms\"for sending SMS. | [optional]
3636
**app_id** | **string** | Required: Your OneSignal Application ID, which can be found in Keys & IDs. It is a UUID and looks similar to 8250eaf6-1a58-489e-b136-7c74a864b434. |
37-
**external_id** | **string** | Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true | [optional]
37+
**external_id** | **string** | [DEPRECATED] Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true | [optional]
38+
**idempotency_key** | **string** | Correlation and idempotency key. A request received with this parameter will first look for another notification with the same idempotency key. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same idempotency key will be sent again. See Idempotent Notification Requests for more details writeOnly: true | [optional]
3839
**contents** | [**StringMap**](StringMap.md) | | [optional]
3940
**headings** | [**StringMap**](StringMap.md) | | [optional]
4041
**subtitle** | [**StringMap**](StringMap.md) | | [optional]

docs/Model/BasicNotificationAllOf.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ Name | Type | Description | Notes
2020
**is_chrome** | **bool** | This flag is not used for web push Please see isChromeWeb for sending to web push users. This flag only applies to Google Chrome Apps & Extensions. Indicates whether to send to all devices registered under your app's Google Chrome Apps & Extension platform. | [optional]
2121
**channel_for_external_user_ids** | **string** | Indicates if the message type when targeting with include_external_user_ids for cases where an email, sms, and/or push subscribers have the same external user id. Example: Use the string \"push\" to indicate you are sending a push notification or the string \"email\"for sending emails or \"sms\"for sending SMS. | [optional]
2222
**app_id** | **string** | Required: Your OneSignal Application ID, which can be found in Keys & IDs. It is a UUID and looks similar to 8250eaf6-1a58-489e-b136-7c74a864b434. | [optional]
23-
**external_id** | **string** | Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true | [optional]
23+
**external_id** | **string** | [DEPRECATED] Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true | [optional]
24+
**idempotency_key** | **string** | Correlation and idempotency key. A request received with this parameter will first look for another notification with the same idempotency key. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same idempotency key will be sent again. See Idempotent Notification Requests for more details writeOnly: true | [optional]
2425
**contents** | [**StringMap**](StringMap.md) | | [optional]
2526
**headings** | [**StringMap**](StringMap.md) | | [optional]
2627
**subtitle** | [**StringMap**](StringMap.md) | | [optional]

docs/Model/Notification.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ Name | Type | Description | Notes
3434
**is_chrome** | **bool** | This flag is not used for web push Please see isChromeWeb for sending to web push users. This flag only applies to Google Chrome Apps & Extensions. Indicates whether to send to all devices registered under your app's Google Chrome Apps & Extension platform. | [optional]
3535
**channel_for_external_user_ids** | **string** | Indicates if the message type when targeting with include_external_user_ids for cases where an email, sms, and/or push subscribers have the same external user id. Example: Use the string \"push\" to indicate you are sending a push notification or the string \"email\"for sending emails or \"sms\"for sending SMS. | [optional]
3636
**app_id** | **string** | Required: Your OneSignal Application ID, which can be found in Keys & IDs. It is a UUID and looks similar to 8250eaf6-1a58-489e-b136-7c74a864b434. |
37-
**external_id** | **string** | Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true | [optional]
37+
**external_id** | **string** | [DEPRECATED] Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true | [optional]
38+
**idempotency_key** | **string** | Correlation and idempotency key. A request received with this parameter will first look for another notification with the same idempotency key. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same idempotency key will be sent again. See Idempotent Notification Requests for more details writeOnly: true | [optional]
3839
**contents** | [**StringMap**](StringMap.md) | | [optional]
3940
**headings** | [**StringMap**](StringMap.md) | | [optional]
4041
**subtitle** | [**StringMap**](StringMap.md) | | [optional]

docs/Model/NotificationWithMeta.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ Name | Type | Description | Notes
3434
**is_chrome** | **bool** | This flag is not used for web push Please see isChromeWeb for sending to web push users. This flag only applies to Google Chrome Apps & Extensions. Indicates whether to send to all devices registered under your app's Google Chrome Apps & Extension platform. | [optional]
3535
**channel_for_external_user_ids** | **string** | Indicates if the message type when targeting with include_external_user_ids for cases where an email, sms, and/or push subscribers have the same external user id. Example: Use the string \"push\" to indicate you are sending a push notification or the string \"email\"for sending emails or \"sms\"for sending SMS. | [optional]
3636
**app_id** | **string** | Required: Your OneSignal Application ID, which can be found in Keys & IDs. It is a UUID and looks similar to 8250eaf6-1a58-489e-b136-7c74a864b434. |
37-
**external_id** | **string** | Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true | [optional]
37+
**external_id** | **string** | [DEPRECATED] Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true | [optional]
38+
**idempotency_key** | **string** | Correlation and idempotency key. A request received with this parameter will first look for another notification with the same idempotency key. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same idempotency key will be sent again. See Idempotent Notification Requests for more details writeOnly: true | [optional]
3839
**contents** | [**StringMap**](StringMap.md) | | [optional]
3940
**headings** | [**StringMap**](StringMap.md) | | [optional]
4041
**subtitle** | [**StringMap**](StringMap.md) | | [optional]

lib/ApiException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
1616
*
17-
* The version of the OpenAPI document: 1.3.0
17+
* The version of the OpenAPI document: 1.4.0
1818
* Contact: devrel@onesignal.com
1919
* Generated by: https://openapi-generator.tech
2020
* OpenAPI Generator version: 6.0.0-SNAPSHOT

lib/Configuration.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
1616
*
17-
* The version of the OpenAPI document: 1.3.0
17+
* The version of the OpenAPI document: 1.4.0
1818
* Contact: devrel@onesignal.com
1919
* Generated by: https://openapi-generator.tech
2020
* OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -99,7 +99,7 @@ class Configuration
9999
*
100100
* @var string
101101
*/
102-
protected $userAgent = 'OpenAPI-Generator/2.1.0/PHP';
102+
protected $userAgent = 'OpenAPI-Generator/2.2.0/PHP';
103103

104104
/**
105105
* Debug switch (default set to false)
@@ -430,8 +430,8 @@ public static function toDebugReport()
430430
$report = 'PHP SDK (onesignal\client) Debug Report:' . PHP_EOL;
431431
$report .= ' OS: ' . php_uname() . PHP_EOL;
432432
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
433-
$report .= ' The version of the OpenAPI document: 1.3.0' . PHP_EOL;
434-
$report .= ' SDK Package Version: 2.1.0' . PHP_EOL;
433+
$report .= ' The version of the OpenAPI document: 1.4.0' . PHP_EOL;
434+
$report .= ' SDK Package Version: 2.2.0' . PHP_EOL;
435435
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
436436

437437
return $report;

lib/HeaderSelector.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
1616
*
17-
* The version of the OpenAPI document: 1.3.0
17+
* The version of the OpenAPI document: 1.4.0
1818
* Contact: devrel@onesignal.com
1919
* Generated by: https://openapi-generator.tech
2020
* OpenAPI Generator version: 6.0.0-SNAPSHOT

lib/ObjectSerializer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
1717
*
18-
* The version of the OpenAPI document: 1.3.0
18+
* The version of the OpenAPI document: 1.4.0
1919
* Contact: devrel@onesignal.com
2020
* Generated by: https://openapi-generator.tech
2121
* OpenAPI Generator version: 6.0.0-SNAPSHOT

0 commit comments

Comments
 (0)