Skip to content

Commit

Permalink
Merge pull request #26 from OneSignal/api
Browse files Browse the repository at this point in the history
Add v2.1.0 package updates
  • Loading branch information
sherwinski authored Jan 22, 2025
2 parents 325c42a + d2ec2e1 commit 95d4c55
Show file tree
Hide file tree
Showing 80 changed files with 136 additions and 126 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ $getEligibleIamsResponse = self::$apiInstance->getEligibleIams(APP_ID, '<SUBSCRI

## 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 Expand Up @@ -551,5 +551,5 @@ requires app_key and which user_key. You can get the value of these keys from yo
[email protected]


- API version: `1.2.2`
- Package version: `2.0.2`
- API version: `1.3.0`
- Package version: `2.1.0`
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "onesignal/onesignal-php-api",
"version": "2.0.2",
"version": "2.1.0",
"description": "A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com",
"keywords": [
"onesignal",
Expand Down
13 changes: 10 additions & 3 deletions docs/Api/DefaultApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# onesignal\client\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 @@ -842,11 +842,18 @@ Removes the User identified by (:alias_label, :alias_id), and all Subscriptions
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer authorization: app_key
$config = onesignal\client\Configuration::getDefaultConfiguration()
->setAppKeyToken('YOUR_APP_KEY_TOKEN')
->setUserKeyToken('YOUR_USER_KEY_TOKEN');



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

### Authorization

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

### HTTP request headers

Expand Down
2 changes: 1 addition & 1 deletion lib/ApiException.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down
12 changes: 6 additions & 6 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down Expand Up @@ -92,14 +92,14 @@ class Configuration
*
* @var string
*/
protected $host = 'https://onesignal.com/api/v1';
protected $host = 'https://api.onesignal.com';

/**
* User agent of the HTTP request, set to "OpenAPI-Generator/{version}/PHP" by default
*
* @var string
*/
protected $userAgent = 'OpenAPI-Generator/2.0.2/PHP';
protected $userAgent = 'OpenAPI-Generator/2.1.0/PHP';

/**
* Debug switch (default set to false)
Expand Down Expand Up @@ -430,8 +430,8 @@ public static function toDebugReport()
$report = 'PHP SDK (onesignal\client) Debug Report:' . PHP_EOL;
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' The version of the OpenAPI document: 1.2.2' . PHP_EOL;
$report .= ' SDK Package Version: 2.0.2' . PHP_EOL;
$report .= ' The version of the OpenAPI document: 1.3.0' . PHP_EOL;
$report .= ' SDK Package Version: 2.1.0' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down Expand Up @@ -471,7 +471,7 @@ public function getHostSettings()
{
return [
[
"url" => "https://onesignal.com/api/v1",
"url" => "https://api.onesignal.com",
"description" => "No description provided",
]
];
Expand Down
2 changes: 1 addition & 1 deletion lib/HeaderSelector.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down
2 changes: 1 addition & 1 deletion lib/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 1.2.2
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down
Loading

0 comments on commit 95d4c55

Please sign in to comment.