1 | <?php |
||
27 | class Agent extends AbstractResource |
||
28 | { |
||
29 | |||
30 | /** |
||
31 | * The resource endpoint |
||
32 | * |
||
33 | * @var string |
||
34 | */ |
||
35 | protected $endpoint = '/agents'; |
||
36 | |||
37 | /** |
||
38 | * |
||
39 | * Get a list of all agents |
||
40 | * |
||
41 | * @param array|null $query |
||
42 | * @return mixed|null |
||
43 | * @throws ApiException |
||
44 | * @throws ConflictingStateException |
||
45 | * @throws RateLimitExceededException |
||
46 | * @throws UnsupportedContentTypeException |
||
47 | */ |
||
48 | public function all(array $query = null) |
||
52 | |||
53 | /** |
||
54 | * |
||
55 | * Get an agent by id |
||
56 | * |
||
57 | * @param int $id |
||
58 | * @param array|null $query |
||
59 | * @return array|null |
||
60 | * @throws AccessDeniedException |
||
61 | * @throws ApiException |
||
62 | * @throws ConflictingStateException |
||
63 | * @throws MethodNotAllowedException |
||
64 | * @throws NotFoundException |
||
65 | * @throws RateLimitExceededException |
||
66 | * @throws UnsupportedAcceptHeaderException |
||
67 | * @throws UnsupportedContentTypeException |
||
68 | * @throws ValidationException |
||
69 | */ |
||
70 | public function view($id, array $query = null) |
||
74 | |||
75 | /** |
||
76 | * |
||
77 | * Get the currently authenticated agent |
||
78 | * |
||
79 | * @param array|null $query |
||
80 | * @return array|null |
||
81 | * @throws AccessDeniedException |
||
82 | * @throws ApiException |
||
83 | * @throws ConflictingStateException |
||
84 | * @throws MethodNotAllowedException |
||
85 | * @throws NotFoundException |
||
86 | * @throws RateLimitExceededException |
||
87 | * @throws UnsupportedAcceptHeaderException |
||
88 | * @throws UnsupportedContentTypeException |
||
89 | * @throws ValidationException |
||
90 | */ |
||
91 | public function current(array $query = null) |
||
95 | |||
96 | } |