Topic Resource
Provides access to topic resources
- Class name: Topic
- Namespace: Freshdesk\Resources
- Parent class: Freshdesk\Resources\AbstractResource
array|null Freshdesk\Resources\Topic::create(integer $id, array $data)
Create a topic for a forum
- Visibility: public
- $id integer
- $data array
array|null Freshdesk\Resources\Topic::all(integer $id, array|null $query)
List topics in a forum
- Visibility: public
- $id integer
- $query array|null
array|null Freshdesk\Resources\Topic::view(integer $id, array|null $query)
View a resource
Use 'include' to embed additional details in the response. Each include will consume an additional credit. For example if you embed the requester and company information you will be charged a total of 3 API credits for the call. See Freshdesk's documentation for details.
- Visibility: public
- $id integer - <p>The resource id</p>
- $query array|null
array|null Freshdesk\Resources\Topic::update(integer $id, array $data)
Update a resource
Updates the resources for the given $id with the supplied data/.
- Visibility: public
- $id integer - <p>The resource id</p>
- $data array - <p>The data</p>
array|null Freshdesk\Resources\Topic::delete(\Freshdesk\Resources\Traits\in $id)
Delete a resource
Delete a resource by $id
- Visibility: public
- $id Freshdesk\Resources\Traits\in - <p>The resource id</p>
array|null Freshdesk\Resources\Topic::monitor($id, $userId)
Monitor a resource
Monitor a resource for the given user
- Visibility: public
- $id mixed - <p>The id of the resource</p>
- $userId mixed - <p>The id of the user</p>
array|null Freshdesk\Resources\Topic::unmonitor($id, $userId)
Unmonitor a resource
Unmonitor a resource for the given user
- Visibility: public
- $id mixed - <p>The id of the resource</p>
- $userId mixed - <p>The id of the user</p>
array|null Freshdesk\Resources\Topic::monitorStatus($id, $userId)
Monitor status
Get the monitoring status of the topic for the user
- Visibility: public
- $id mixed - <p>The id of the resource</p>
- $userId mixed - <p>The id of the user</p>