Releases: ringcentral/ringcentral-php
3.0.3
What's Changed
- [mis] Remove username andd password from Demo files and added support of JWT by @SushilMallRC in #138
- Extract Truncated error response by @SushilMallRC in #139
Full Changelog: 3.0.2...3.0.3
3.0.2
What's Changed
- Generate PHP Doc by @SushilMallRC in #130
- Add body param for delete request by @SushilMallRC in #136
- Remove PubNub SubscriptionTest by @SushilMallRC in #137
Full Changelog: 3.0.1...3.0.2
Note:
Breaking Change: Added $body Parameter to delete Method
Change Summary:
The delete method in our HTTP client now includes a new $body parameter. This change allows users to pass a request body with DELETE requests.
Previous Method Signature:
public function delete($url = '', $queryParameters = [], array $headers = [], $options = [])
New Method Signature:
public function delete($url = '', $body = null, $queryParameters = [], array $headers = [], $options = [])
Impact on Existing Code:
- Existing code that calls the delete method without a $body argument will continue to function as before, as the $body parameter is optional and defaults to null.
- However, codebases that rely on positional arguments in method calls will need to update their calls to handle the new parameter, particularly if they are passing arguments that previously matched queryParameters, headers, or options.
Recommended Action:
- Review all instances of the delete method call in your codebase.
- Update method calls to explicitly specify parameters using named arguments where necessary, especially if your code relies on the position of parameters after $url.
Example After Changes with request body
`$body = array(
'records' => array(
'id1',
'id2'
)
);
delete(
'https://api.example.com/resource',
$body,
['param1' => 'value'], // Query parameters
['Content-Type' => 'application/json'] // Headers
);`
3.0.1
3.0.0
What's Changed
- feat: add WebSocket subscription support
- misc: show deprecated warning at pubnub subscription
- misc: show deprecated warning at password login
Full Changelog: 2.3.6...3.0.0
2.3.6
2.3.4
2.3.3
Adds support for the Conversational Intelligence APIs
2.3.2
Updates for improved compatibility with RingCentral Video and Analytics APIs.
Minor update to reduce warnings
This release made minor changes to how a developer authenticates to the platform, but changing how input parameters for the config hash are checked. The changes help reduce warnings and no longer mandate that developers pass null values for keys if the key is not used.
2.3.0
Merge pull request #100 from ringcentral/jwt-pkce-auth Updated login and authURL methods for JWT and PKCE support