Skip to content

Commit d2ec2e1

Browse files
author
OneSignal
committed
feat: add v2.1.0 package updates
1 parent 325c42a commit d2ec2e1

File tree

80 files changed

+136
-126
lines changed

Some content is hidden

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

80 files changed

+136
-126
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ $getEligibleIamsResponse = self::$apiInstance->getEligibleIams(APP_ID, '<SUBSCRI
412412

413413
## API Endpoints
414414

415-
All URIs are relative to *https://onesignal.com/api/v1*
415+
All URIs are relative to *https://api.onesignal.com*
416416

417417
Class | Method | HTTP request | Description
418418
------------ | ------------- | ------------- | -------------
@@ -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.2.2`
555-
- Package version: `2.0.2`
554+
- API version: `1.3.0`
555+
- Package version: `2.1.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.0.2",
3+
"version": "2.1.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/Api/DefaultApi.md

+10-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# onesignal\client\DefaultApi
22

3-
All URIs are relative to https://onesignal.com/api/v1.
3+
All URIs are relative to https://api.onesignal.com.
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
@@ -842,11 +842,18 @@ Removes the User identified by (:alias_label, :alias_id), and all Subscriptions
842842
require_once(__DIR__ . '/vendor/autoload.php');
843843

844844

845+
// Configure Bearer authorization: app_key
846+
$config = onesignal\client\Configuration::getDefaultConfiguration()
847+
->setAppKeyToken('YOUR_APP_KEY_TOKEN')
848+
->setUserKeyToken('YOUR_USER_KEY_TOKEN');
849+
850+
845851

846852
$apiInstance = new onesignal\client\Api\DefaultApi(
847853
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
848854
// This is optional, `GuzzleHttp\Client` will be used as default.
849-
new GuzzleHttp\Client()
855+
new GuzzleHttp\Client(),
856+
$config
850857
);
851858
$app_id = 'app_id_example'; // string
852859
$alias_label = 'alias_label_example'; // string
@@ -873,7 +880,7 @@ void (empty response body)
873880

874881
### Authorization
875882

876-
No authorization required
883+
[app_key](../../README.md#app_key)
877884

878885
### HTTP request headers
879886

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.2.2
17+
* The version of the OpenAPI document: 1.3.0
1818
* Contact: devrel@onesignal.com
1919
* Generated by: https://openapi-generator.tech
2020
* OpenAPI Generator version: 6.0.0-SNAPSHOT

lib/Configuration.php

+6-6
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.2.2
17+
* The version of the OpenAPI document: 1.3.0
1818
* Contact: devrel@onesignal.com
1919
* Generated by: https://openapi-generator.tech
2020
* OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -92,14 +92,14 @@ class Configuration
9292
*
9393
* @var string
9494
*/
95-
protected $host = 'https://onesignal.com/api/v1';
95+
protected $host = 'https://api.onesignal.com';
9696

9797
/**
9898
* User agent of the HTTP request, set to "OpenAPI-Generator/{version}/PHP" by default
9999
*
100100
* @var string
101101
*/
102-
protected $userAgent = 'OpenAPI-Generator/2.0.2/PHP';
102+
protected $userAgent = 'OpenAPI-Generator/2.1.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.2.2' . PHP_EOL;
434-
$report .= ' SDK Package Version: 2.0.2' . 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;
435435
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
436436

437437
return $report;
@@ -471,7 +471,7 @@ public function getHostSettings()
471471
{
472472
return [
473473
[
474-
"url" => "https://onesignal.com/api/v1",
474+
"url" => "https://api.onesignal.com",
475475
"description" => "No description provided",
476476
]
477477
];

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.2.2
17+
* The version of the OpenAPI document: 1.3.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.2.2
18+
* The version of the OpenAPI document: 1.3.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)