| @@ 159-167 (lines=9) @@ | ||
| 156 | * @param string $client_id |
|
| 157 | * @return object |
|
| 158 | */ |
|
| 159 | public function getClient($client_id = null){ |
|
| 160 | if(!$client_id){ |
|
| 161 | throw new IsNullOrInvalid("Error Processing Request - Null/Invalid Client Id"); |
|
| 162 | } |
|
| 163 | ||
| 164 | $url = "/clients/{$client_id}"; |
|
| 165 | ||
| 166 | return $this->sendRequest('get', $url); |
|
| 167 | } |
|
| 168 | ||
| 169 | ||
| 170 | ||
| @@ 205-213 (lines=9) @@ | ||
| 202 | * [deleteClient] |
|
| 203 | * @param string $client_id [description] |
|
| 204 | */ |
|
| 205 | public function deleteClient($client_id = null){ |
|
| 206 | if(!$client_id){ |
|
| 207 | throw new IsNullOrInvalid("Error Processing Request - Null/Invalid Client Id"); |
|
| 208 | } |
|
| 209 | ||
| 210 | $url = "/clients/{$client_id}"; |
|
| 211 | ||
| 212 | return $this->sendRequest('delete', $url); |
|
| 213 | } |
|
| 214 | ||
| 215 | ||
| 216 | ||