|
@@ 26-36 (lines=11) @@
|
| 23 |
|
/** |
| 24 |
|
* @throws \Kerox\Messenger\Exception\MessengerException |
| 25 |
|
*/ |
| 26 |
|
public function get(array $profileSettings): ProfileResponse |
| 27 |
|
{ |
| 28 |
|
$this->isValidFields($profileSettings); |
| 29 |
|
|
| 30 |
|
$profileSettings = implode(',', $profileSettings); |
| 31 |
|
|
| 32 |
|
$request = new ProfileRequest($this->pageToken, $profileSettings); |
| 33 |
|
$response = $this->client->get('me/messenger_profile', $request->build()); |
| 34 |
|
|
| 35 |
|
return new ProfileResponse($response); |
| 36 |
|
} |
| 37 |
|
|
| 38 |
|
/** |
| 39 |
|
* @throws \Kerox\Messenger\Exception\MessengerException |
|
@@ 41-49 (lines=9) @@
|
| 38 |
|
/** |
| 39 |
|
* @throws \Kerox\Messenger\Exception\MessengerException |
| 40 |
|
*/ |
| 41 |
|
public function delete(array $profileSettings): ProfileResponse |
| 42 |
|
{ |
| 43 |
|
$this->isValidFields($profileSettings); |
| 44 |
|
|
| 45 |
|
$request = new ProfileRequest($this->pageToken, $profileSettings); |
| 46 |
|
$response = $this->client->delete('me/messenger_profile', $request->build()); |
| 47 |
|
|
| 48 |
|
return new ProfileResponse($response); |
| 49 |
|
} |
| 50 |
|
|
| 51 |
|
/** |
| 52 |
|
* @throws \Kerox\Messenger\Exception\MessengerException |