Agent resource
This provides access to the agent resources
- Class name: Agent
- Namespace: Freshdesk\Resources
- Parent class: Freshdesk\Resources\AbstractResource
array|null Freshdesk\Resources\Agent::current(array|null $query)
Get the currently authenticated agent
- Visibility: public
- $query array|null
mixed Freshdesk\Resources\Agent::all(array|null $query)
Get a list of all agents.
Use filters ($query) to view only specific resources (those which match the criteria that you choose).
- Visibility: public
- $query array|null
array|null Freshdesk\Resources\Agent::create(array $data)
Create a resource
Create a resource with the supplied data
- Visibility: public
- $data array - <p>The data</p>
array|null Freshdesk\Resources\Agent::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