Skip to content

Commit 064e1d4

Browse files
authored
Merge pull request #39 from Bandwidth/DX-638
Dx 638
2 parents aa888dc + 8a83cce commit 064e1d4

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ PHP Client library for Bandwidth's Phone Number Dashboard (AKA: Dashboard, Iris)
88
|:---|:---|
99
| 2.0.0 | Fixed incompatibilities with Bandwidth's Dashboard API Create Site function that required breaking changes. Versions less than 2.0.0 are not guaranteed to work with Bandwidth's Dashboard API. |
1010
| 2.0.1 | Added `ActualFocDate` to Portins model |
11+
| 2.0.2 | Fixed HTTP method for `set_tn_options` to `PUT` |
1112

1213
## Supported PHP Versions
1314

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Bandwidth's Iris SDK for PHP",
55
"keywords": ["iris","sdk","php"],
66
"homepage": "http://dev.bandwidth.com",
7-
"reference": "v2.0.1",
7+
"reference": "v2.0.2",
88
"license": "MIT",
99
"authors": [
1010
],

src/Tns.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public function set_tn_options($data) {
200200

201201
if(!($this->parent->parent instanceof Sippeer))
202202
throw new \Exception("You should get TN from sippeer");
203-
parent::post($this->get_id(), "SipPeerTelephoneNumbers", $data->to_array());
203+
parent::put($this->get_id(), "SipPeerTelephoneNumbers", $data->to_array());
204204
}
205205

206206
public function ratecenter() {

tests/SippeersTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public function testTNOptions() {
148148
"RPIDFormat" => "e164"
149149
]);
150150

151-
$this->assertEquals("POST", self::$container[self::$index]['request']->getMethod());
151+
$this->assertEquals("PUT", self::$container[self::$index]['request']->getMethod());
152152
$this->assertEquals("https://api.test.inetwork.com/v1.0/accounts/9500249/sites/9999/sippeers/2489/tns/8183386251", self::$container[self::$index]['request']->getUri());
153153
self::$index++;
154154
}

0 commit comments

Comments
 (0)