1 | <?php |
||
23 | class Forum extends AbstractResource |
||
24 | { |
||
25 | |||
26 | use AllTrait, ViewTrait, UpdateTrait, DeleteTrait, MonitorTrait; |
||
27 | |||
28 | /** |
||
29 | * The forums resource endpoint |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | protected $endpoint = '/discussions/forums'; |
||
34 | |||
35 | /** |
||
36 | * The resource endpoint |
||
37 | * |
||
38 | * @var string |
||
39 | */ |
||
40 | protected $categoryEndpoint = '/discussions/categories'; |
||
41 | |||
42 | /** |
||
43 | * Creates the category endpoint (for creating forums) |
||
44 | * |
||
45 | * @param null $id |
||
46 | * @return string |
||
47 | */ |
||
48 | private function categoryEndpoint($id = null) |
||
52 | |||
53 | /** |
||
54 | * |
||
55 | * Create a forum for a category. |
||
56 | * |
||
57 | * @param int $id The category Id |
||
58 | * @param array $data |
||
59 | * @return array|null |
||
60 | * @throws \Freshdesk\Exceptions\AccessDeniedException |
||
61 | * @throws \Freshdesk\Exceptions\ApiException |
||
62 | * @throws \Freshdesk\Exceptions\AuthenticationException |
||
63 | * @throws \Freshdesk\Exceptions\ConflictingStateException |
||
64 | * @throws \Freshdesk\Exceptions\NotFoundException |
||
65 | * @throws \Freshdesk\Exceptions\RateLimitExceededException |
||
66 | * @throws \Freshdesk\Exceptions\UnsupportedContentTypeException |
||
67 | * @throws \Freshdesk\Exceptions\MethodNotAllowedException |
||
68 | * @throws \Freshdesk\Exceptions\UnsupportedAcceptHeaderException |
||
69 | * @throws \Freshdesk\Exceptions\ValidationException |
||
70 | */ |
||
71 | public function create($id, array $data) |
||
75 | |||
76 | } |
||
77 |