Skip to content

Commit cbd53ff

Browse files
authored
Merge pull request #80 from ooglek/issue-78-set-activation-status
Fixes Issue #78 using PUT for set_activation_status()
2 parents a10a1fd + 9f4aac3 commit cbd53ff

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ PHP Client library for Bandwidth's Phone Number Dashboard (AKA: Dashboard, Iris)
2626
| 3.2.0 | Update SipPeerTelephoneNumber to enable/disabe SMS |
2727
| 3.3.0 | Added PortOutStatus, ActualFocDate, and SPID to the portout model |
2828
| 3.3.1 | Updated the portins update method to clear the ActualFocDate field |
29+
| 3.3.2 | Updated the portins set_activation_status method use a PUT method |
2930

3031
## Supported PHP Versions
3132

composer.json

Lines changed: 1 addition & 2 deletions
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": "v3.3.1",
7+
"reference": "v3.3.2",
88
"license": "MIT",
99
"authors": [
1010
],
@@ -25,4 +25,3 @@
2525
]
2626
}
2727
}
28-

src/PortinsModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public function get_activation_status() {
193193
public function set_activation_status($data) {
194194
$obj = new \Iris\ActivationStatus($data);
195195
$url = sprintf('%s/%s', $this->get_id(), 'activationStatus');
196-
$res = parent::post($url, "ActivationStatus", $obj->to_array());
196+
$res = parent::put($url, "ActivationStatus", $obj->to_array());
197197
return new ActivationStatus($res['ActivationStatus']);
198198
}
199199

0 commit comments

Comments
 (0)