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