Skip to content

Commit 139bd60

Browse files
authored
SWI-9085 Add TN Lookup V2 (#82)
* SWI-9085 Add TN Lookup V2 * update test * remove slack notify from wf * tests * tests again * add other methods and models + tests * remove old models * rename to match class name * update test * fix test * add async get test * sleep longer * try looking up deactivated number * remove other unused models * revert test
1 parent 371c85c commit 139bd60

17 files changed

+710
-1909
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
php-version: [8.0, 8.1, 8.2, 8.3]
2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@v5
2424

2525
- name: Setup PHP
2626
uses: shivammathur/setup-php@v2
@@ -41,10 +41,3 @@ jobs:
4141
USER_NUMBER: ${{ secrets.USER_NUMBER }}
4242
BASE_CALLBACK_URL: ${{ secrets.BASE_CALLBACK_URL }}
4343
run: ./vendor/bin/phpunit tests
44-
45-
- uses: Bandwidth/build-notify-slack-action@v2
46-
if: failure() && !github.event.pull_request.draft
47-
with:
48-
job-status: ${{ job.status }}
49-
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
50-
slack-channel: ${{ secrets.SLACK_CHANNEL }}

src/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ public function getBaseUri(string $server = Servers::DEFAULT_)
284284
Servers::DEFAULT_ => 'api.bandwidth.com',
285285
Servers::MESSAGINGDEFAULT => 'https://messaging.bandwidth.com/api/v2',
286286
Servers::MULTIFACTORAUTHDEFAULT => 'https://mfa.bandwidth.com/api/v1',
287-
Servers::PHONENUMBERLOOKUPDEFAULT => 'https://numbers.bandwidth.com/api/v1',
287+
Servers::PHONENUMBERLOOKUPDEFAULT => 'https://api.bandwidth.com/v2',
288288
Servers::VOICEDEFAULT => 'https://voice.bandwidth.com',
289289
Servers::WEBRTCDEFAULT => 'https://api.webrtc.bandwidth.com/v1',
290290
),

0 commit comments

Comments
 (0)