Skip to content

Commit 98b6743

Browse files
authored
Merge pull request #38 from OneSignal/user-api-updates
Add v5.1.0-beta1 package updates
2 parents 6af25b7 + ab0eb9c commit 98b6743

File tree

62 files changed

+193
-193
lines changed

Some content is hidden

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

62 files changed

+193
-193
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ use GuzzleHttp;
5252
### Constants
5353
```php
5454
const APP_ID = '<YOUR_APP_ID>';
55-
const APP_KEY_TOKEN = '<YOUR_APP_KEY_TOKEN>';
56-
const USER_KEY_TOKEN = '<YOUR_USER_KEY_TOKEN>';
55+
const REST_API_KEY_TOKEN = '<YOUR_REST_API_KEY>'; // App REST API key required for most endpoints
56+
const ORGANIZATION_API_KEY_TOKEN = '<YOUR_ORGANIZATION_API_KEY>'; // Organization key is only required for creating new apps and other top-level endpoints
5757
```
5858

5959
### Configure authorization
6060
```php
6161
$config = Configuration::getDefaultConfiguration()
62-
->setAppKeyToken(APP_KEY_TOKEN)
63-
->setUserKeyToken(USER_KEY_TOKEN);
62+
->setRestApiKeyToken(REST_API_KEY_TOKEN)
63+
->setOrganizationApiKeyToken(ORGANIZATION_API_KEY_TOKEN);
6464

6565
$apiInstance = new DefaultApi(
6666
new GuzzleHttp\Client(),
@@ -511,12 +511,12 @@ requires app_key and which user_key. You can get the value of these keys from yo
511511

512512

513513

514-
### rest_api_key
514+
### organization_api_key
515515

516516
- **Type**: Bearer authentication
517517

518518

519-
### user_auth_key
519+
### rest_api_key
520520

521521
- **Type**: Bearer authentication
522522

@@ -526,5 +526,5 @@ requires app_key and which user_key. You can get the value of these keys from yo
526526
527527

528528

529-
- API version: `5.0.1`
530-
- Package version: `5.0.0-beta1`
529+
- API version: `5.1.0`
530+
- Package version: `5.1.0-beta1`

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "onesignal/onesignal-php-api",
3-
"version": "5.0.0-beta1",
3+
"version": "5.1.0-beta1",
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

Lines changed: 68 additions & 68 deletions
Large diffs are not rendered by default.

lib/ApiException.php

Lines changed: 1 addition & 1 deletion
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: 5.0.1
17+
* The version of the OpenAPI document: 5.1.0
1818
* Contact: [email protected]
1919
* Generated by: https://openapi-generator.tech
2020
* OpenAPI Generator version: 6.0.0-SNAPSHOT

lib/Configuration.php

Lines changed: 20 additions & 20 deletions
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: 5.0.1
17+
* The version of the OpenAPI document: 5.1.0
1818
* Contact: [email protected]
1919
* Generated by: https://openapi-generator.tech
2020
* OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -59,18 +59,18 @@ class Configuration
5959
protected $apiKeyPrefixes = [];
6060

6161
/**
62-
* restApiKey access token for OAuth/Bearer authentication
62+
* organizationApiKey access token for OAuth/Bearer authentication
6363
*
6464
* @var string
6565
*/
66-
protected $restApiKeyToken = '';
66+
protected $organizationApiKeyToken = '';
6767

6868
/**
69-
* userAuthKey access token for OAuth/Bearer authentication
69+
* restApiKey access token for OAuth/Bearer authentication
7070
*
7171
* @var string
7272
*/
73-
protected $userAuthKeyToken = '';
73+
protected $restApiKeyToken = '';
7474

7575

7676
/**
@@ -99,7 +99,7 @@ class Configuration
9999
*
100100
* @var string
101101
*/
102-
protected $userAgent = 'OpenAPI-Generator/5.0.0-beta1/PHP';
102+
protected $userAgent = 'OpenAPI-Generator/5.1.0-beta1/PHP';
103103

104104
/**
105105
* Debug switch (default set to false)
@@ -157,49 +157,49 @@ public function getApiKey($apiKeyIdentifier)
157157
}
158158

159159
/**
160-
* Sets the restApiKey access token for OAuth
160+
* Sets the organizationApiKey access token for OAuth
161161
*
162162
* @param string $accessToken Token for OAuth
163163
*
164164
* @return $this
165165
*/
166-
public function setRestApiKeyToken($accessToken)
166+
public function setOrganizationApiKeyToken($accessToken)
167167
{
168-
$this->restApiKeyToken = $accessToken;
168+
$this->organizationApiKeyToken = $accessToken;
169169
return $this;
170170
}
171171

172172
/**
173-
* Gets the restApiKey access token for OAuth
173+
* Gets the organizationApiKey access token for OAuth
174174
*
175175
* @return string Access token for OAuth
176176
*/
177-
public function getRestApiKeyToken()
177+
public function getOrganizationApiKeyToken()
178178
{
179-
return $this->restApiKeyToken;
179+
return $this->organizationApiKeyToken;
180180
}
181181

182182
/**
183-
* Sets the userAuthKey access token for OAuth
183+
* Sets the restApiKey access token for OAuth
184184
*
185185
* @param string $accessToken Token for OAuth
186186
*
187187
* @return $this
188188
*/
189-
public function setUserAuthKeyToken($accessToken)
189+
public function setRestApiKeyToken($accessToken)
190190
{
191-
$this->userAuthKeyToken = $accessToken;
191+
$this->restApiKeyToken = $accessToken;
192192
return $this;
193193
}
194194

195195
/**
196-
* Gets the userAuthKey access token for OAuth
196+
* Gets the restApiKey access token for OAuth
197197
*
198198
* @return string Access token for OAuth
199199
*/
200-
public function getUserAuthKeyToken()
200+
public function getRestApiKeyToken()
201201
{
202-
return $this->userAuthKeyToken;
202+
return $this->restApiKeyToken;
203203
}
204204

205205
/**
@@ -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: 5.0.1' . PHP_EOL;
434-
$report .= ' SDK Package Version: 5.0.0-beta1' . PHP_EOL;
433+
$report .= ' The version of the OpenAPI document: 5.1.0' . PHP_EOL;
434+
$report .= ' SDK Package Version: 5.1.0-beta1' . PHP_EOL;
435435
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
436436

437437
return $report;

lib/HeaderSelector.php

Lines changed: 1 addition & 1 deletion
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: 5.0.1
17+
* The version of the OpenAPI document: 5.1.0
1818
* Contact: [email protected]
1919
* Generated by: https://openapi-generator.tech
2020
* OpenAPI Generator version: 6.0.0-SNAPSHOT

lib/ObjectSerializer.php

Lines changed: 1 addition & 1 deletion
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: 5.0.1
18+
* The version of the OpenAPI document: 5.1.0
1919
* Contact: [email protected]
2020
* Generated by: https://openapi-generator.tech
2121
* OpenAPI Generator version: 6.0.0-SNAPSHOT

0 commit comments

Comments
 (0)