Releases: Bandwidth/php-sdk
Releases · Bandwidth/php-sdk
v12.0.0
What's Changed
- SWI-7989 - windows-2019 GH runner decommission by @jgutierrezglez in #80
- SWI-2827 Add Repo to Service Catalog by @jgutierrezglez in #81
- SWI-9085 Add TN Lookup V2 by @ckoegel in #82
Full Changelog: v11.0.1...v12.0.0
TN Lookup Migration Guide
- All new response bodies will contain top level fields
links,data, anderrors. datawill contain information similar to that returned by the V1 response bodies.linkswill be populated if receiving paginated results from Get Async Lookup Status.errorswill contain any errors with your request.
Create Async Lookup Request
Old
$body = new BandwidthLib\PhoneNumberLookup\Models\OrderRequest();
$body->tns = ["+19195551234"];
$resp = $this->bandwidthClient->getPhoneNumberLookup()->getClient()->createLookupRequest("ACCOUNT_ID", $body);
$requestId = $resp->getResult()->requestId;$resp->getResult()wasBandwidthLib\PhoneNumberLookup\Models\OrderResponse
New
$body = new BandwidthLib\PhoneNumberLookup\Models\CreateLookupRequest();
$body->phoneNumbers = ["+19195551234"];
$resp = $this->bandwidthClient->getPhoneNumberLookup()->getClient()->createAsyncBulkLookupRequest("ACCOUNT_ID", $body);
$requestId = $resp->getResult()->data->requestId;$resp->getResult()is nowBandwidthLib\PhoneNumberLookup\Models\CreateAsyncBulkResponse- response data is now inside
$resp->getResult()->data $resp->getResult()->dataisBandwidthLib\PhoneNumberLookup\Models\CreateAsyncBulkResponseData
Get Async Lookup Status
Old
$resp = $this->bandwidthClient->getPhoneNumberLookup()->getClient()->getLookupRequestStatus("ACCOUNT_ID", $requestId);
$firstResult = $resp->getResult()->result[0];
$phoneNumber = $firstResult->e164Format;$resp->getResult()wasBandwidthLib\PhoneNumberLookup\Models\OrderStatus$resp->getResult()->resultwas an array ofBandwidthLib\PhoneNumberLookup\Models\Result
New
$resp = $this->bandwidthClient->getPhoneNumberLookup()->getClient()->getAsyncLookupRequestStatus("ACCOUNT_ID", $requestId);
$firstResult = $resp->getResult()->data->results[0];
$phoneNumber = $firstResult->phoneNumber;$resp->getResult()is nowBandwidthLib\PhoneNumberLookup\Models\LookupResponse$resp->getResult()->dataisBandwidthLib\PhoneNumberLookup\Models\LookupResponseData- This is equivalent to the old
OrderStatus
- This is equivalent to the old
$resp->getResult()->data->resultsis an array ofBandwidthLib\PhoneNumberLookup\Models\LookupResultresultswill be empty untilstatusisCOMPLETE
New Synchronous Lookup
Useful if requesting less than 100 TNs
$body = new BandwidthLib\PhoneNumberLookup\Models\CreateLookupRequest();
$body->phoneNumbers = ["+19195551234"];
$resp = $this->bandwidthClient->getPhoneNumberLookup()->getClient()->createSyncLookupRequest("ACCOUNT_ID", $body);
$firstResult = $resp->getResult()->data->results[0];
$phoneNumber = $firstResult->phoneNumber;- Request body is the exact same as Create Async Lookup Request, just limited to 100 TNs
- Response body is the exact same as Get Async Lookup Status, but the status will always be
COMPLETEandresultswill be populated.
v11.0.1
What's Changed
- SWI-6496 Fix Media Tests by @ajrice6713 in #75
- SWI-7167 - Replacing ubuntu-20.04 by ubuntu-24.04 on test-pr workflow by @jgutierrezglez in #76
- SWI-7186 Update CODEOWNERS by @ckoegel in #77
- SWI-7559 Fix
stabilizedProperty inStartTranscriptionVerb by @ckoegel in #79
New Contributors
- @jgutierrezglez made their first contribution in #76
Full Changelog: v11.0.0...v11.0.1
v11.0.0
What's Changed
- Verse - Voice builder pattern and typing by @ethanransdellverse in #71
- SWI-5607 Drop Support for PHP 7.4 by @ajrice6713 in #73
New Contributors
- @ethanransdellverse made their first contribution in #71
Full Changelog: v10.6.1...v11.0.0
v10.6.1
v10.6.0
What's Changed
- Update README.md by @ajrice6713 in #66
- SWI-2171 by @ajrice6713 in #68
- SWI-4587 add
transferCallerDisplayNameby @ajrice6713 in #69
Full Changelog: v10.5.0...v10.6.0
v10.5.0
What's Changed
- SWI-2789 Added Start/Stop Transcription by @brianluisgomez in #65
Full Changelog: v10.4.0...v10.5.0
v10.4.0
What's Changed
- SWI-2615 Add support for PHP > 8.1 by @ajrice6713 in #64
Full Changelog: v10.3.0...v10.4.0
v10.3.0
What's Changed
- DX-2944 Updating Concurrency for Test Workflow by @brianluisgomez in #60
- DX-2778 Ubuntu Version by @ckoegel in #61
- SWI-2565 Updated for detectLanguage by @brianluisgomez in #63
Full Changelog: v10.2.0...v10.3.0
v10.2.0
What's Changed
- Added StreamParam for StartStream by @brianluisgomez in #59
Full Changelog: v10.1.0...v10.2.0
v10.1.0
What's Changed
- DX-2704 Adding StartStream and StopStream Verbs by @brianluisgomez in #57
- DX-2809 fixed upload media content Type by @brianluisgomez in #58
Full Changelog: v10.0.1...v10.1.0