| @@ 43-50 (lines=8) @@ | ||
| 40 | * @throws \Freshdesk\Exceptions\UnsupportedAcceptHeaderException | |
| 41 | * @throws \Freshdesk\Exceptions\ValidationException | |
| 42 | */ | |
| 43 | public function monitor($id, $userId) | |
| 44 |     { | |
| 45 | $data = [ | |
| 46 | 'user_id' => $userId | |
| 47 | ]; | |
| 48 | ||
| 49 |         return $this->api()->request('POST', $this->endpoint($id . '/follow'), $data); | |
| 50 | } | |
| 51 | ||
| 52 | /** | |
| 53 | * | |
| @@ 69-76 (lines=8) @@ | ||
| 66 | * @throws \Freshdesk\Exceptions\UnsupportedAcceptHeaderException | |
| 67 | * @throws \Freshdesk\Exceptions\ValidationException | |
| 68 | */ | |
| 69 | public function unmonitor($id, $userId) | |
| 70 |     { | |
| 71 | $query = [ | |
| 72 | 'user_id' => $userId | |
| 73 | ]; | |
| 74 | ||
| 75 |         return $this->api()->request('POST', $this->endpoint($id . '/follow'), null, $query); | |
| 76 | } | |
| 77 | ||
| 78 | /** | |
| 79 | * | |
| @@ 95-102 (lines=8) @@ | ||
| 92 | * @throws \Freshdesk\Exceptions\UnsupportedAcceptHeaderException | |
| 93 | * @throws \Freshdesk\Exceptions\ValidationException | |
| 94 | */ | |
| 95 | public function monitorStatus($id, $userId) | |
| 96 |     { | |
| 97 | $query = [ | |
| 98 | 'user_id' => $userId | |
| 99 | ]; | |
| 100 | ||
| 101 |         return $this->api()->request('GET', $this->endpoint($id . '/follow'), null, $query); | |
| 102 | } | |
| 103 | } | |