Releases: team-telnyx/telnyx-php
QOL updates and SIM card activate/de-activate functions
- Added support for OBJECT_ID which allows you to rename the 'id' parameter. For special cases like \Telnyx\Call which uses 'call_control_id' instead of 'id'
- Added Activate/Deactivate to SimCard.php
- Added more tests to existing endpoints
- Added coverage for core lib and traits
- Removed dead code and unused files
Added support for webhook signature verification (#40)
-
Added support for webhook signature verification: ED25519 verification and tests
-
Added way to set public key: Updated webhooks to take public key via \Telnyx\Telnyx::setPublicKey()
-
An examples directory has also been added to this project.
Updated error handling
Improvements were made to error handling.
$e->getError()
will return the full API error as a JSON object.
Uncaught exceptions will return as a clean string with all core details.
Added the balance and faxes endpoint
Endpoints added:
/v2/balance
/v2/faxes
Updated Pagination Functionality
Pagination can now be used on collection endpoints via the nextPage()
method.
Example
$outbound_voice_profiles_page_one = \Telnyx\OutboundVoiceProfile::All(["page" => ["size" => 5]]);
echo $outbound_voice_profiles_page_one;
$outbound_voice_profiles_page_two = $outbound_voice_profiles->nextPage();
echo $outbound_voice_profiles_page_two;
Added Call Control Applications Endpoint
The /call_control_applciations
endpoint has been added to the SDK in this release.
Added meta data to Collections endpoints
- Updated Collections endpoints to return metadata for pagination
- Added
/sim_cards
and/wireless/detail_records_reports
endpoints
Added Inbound Channels, Outbound Voice Profiles, SIM Cards, Portouts Endpoints
Endpoints added:
/outbound_voice_profiles
/phone_numbers/inbound_channels
/sim_cards
/portouts
Outbound Voice Profiles Endpoint
Added new endpoint for Outbound Voice Profiles and updated tests.
New endpoint: /outbound_voice_profiles
Bugfix for isset()
Using isset()
in ApiRequestor.php
instead of array_key_exists()