public function getAll($user_id = null, $client_id = null, $type = null, $fields = null, $include_fields = null)
{
$request = $this->apiClient->get()->addPath('device-credentials');
if ($fields !== null) {
if (is_array($fields)) {
$fields = implode(',', $fields);
}
$request->withParam('fields', $fields);
}
if ($include_fields !== null) {
$request->withParam('include_fields', $include_fields);
}
if ($user_id !== null) {
$request->withParam('user_id', $user_id);
}
if ($client_id !== null) {
$request->withParam('client_id', $client_id);
}
if ($type !== null) {
$request->withParam('type', $type);
}
return $request->call();
}