@@ 273-280 (lines=8) @@ | ||
270 | * @throws \Freshdesk\Exceptions\UnsupportedAcceptHeaderException |
|
271 | * @throws \Freshdesk\Exceptions\ValidationException |
|
272 | */ |
|
273 | public function monitorForum($id, $userId) |
|
274 | { |
|
275 | $data = [ |
|
276 | 'user_id' => $userId |
|
277 | ]; |
|
278 | ||
279 | return $this->api()->request('POST', $this->forumsEndpoint($id . '/follow'), $data); |
|
280 | } |
|
281 | ||
282 | /** |
|
283 | * |
|
@@ 299-306 (lines=8) @@ | ||
296 | * @throws \Freshdesk\Exceptions\UnsupportedAcceptHeaderException |
|
297 | * @throws \Freshdesk\Exceptions\ValidationException |
|
298 | */ |
|
299 | public function unMonitorForum($id, $userId) |
|
300 | { |
|
301 | $query = [ |
|
302 | 'user_id' => $userId |
|
303 | ]; |
|
304 | ||
305 | return $this->api()->request('POST', $this->forumsEndpoint($id . '/follow'), null, $query); |
|
306 | } |
|
307 | ||
308 | /** |
|
309 | * |
|
@@ 325-332 (lines=8) @@ | ||
322 | * @throws \Freshdesk\Exceptions\UnsupportedAcceptHeaderException |
|
323 | * @throws \Freshdesk\Exceptions\ValidationException |
|
324 | */ |
|
325 | public function monitorForumStatus($id, $userId) |
|
326 | { |
|
327 | $query = [ |
|
328 | 'user_id' => $userId |
|
329 | ]; |
|
330 | ||
331 | return $this->api()->request('GET', $this->forumsEndpoint($id . '/follow'), null, $query); |
|
332 | } |
|
333 | ||
334 | /** |
|
335 | * |