We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have discovered, that parameters set to function findAll were not passed to the API call
current function
/** * List all users * * @param array $params * * @throws ResponseException * @throws \Exception * @return mixed */ public function findAll(array $params = []) { if (isset($params['organization_id'])) { $this->endpoint = "organizations/{$params['organization_id']}/users.json"; } elseif (isset($params['group_id'])) { $this->endpoint = 'groups/' . $params['group_id'] . '/users.json'; } else { $this->endpoint = 'users.json'; } return $this->traitFindAll(); }
should be fixed to:
/** * List all users * * @param array $params * * @throws ResponseException * @throws \Exception * @return mixed */ public function findAll(array $params = []) { if (isset($params['organization_id'])) { $this->endpoint = "organizations/{$params['organization_id']}/users.json"; } elseif (isset($params['group_id'])) { $this->endpoint = 'groups/' . $params['group_id'] . '/users.json'; } else { $this->endpoint = 'users.json'; } return $this->traitFindAll($params); }
The only change is missing parameter $params in the line: return $this->traitFindAll();
return $this->traitFindAll();
The text was updated successfully, but these errors were encountered:
In your current version of PHP API is not working following code: $users = $client->users()->findAll(array('page'=>2));
$users = $client->users()->findAll(array('page'=>2));
It will always return page number 1
Sorry, something went wrong.
Fixed by #209
No branches or pull requests
I have discovered, that parameters set to function findAll were not passed to the API call
current function
should be fixed to:
The only change is missing parameter $params in the line:
return $this->traitFindAll();
The text was updated successfully, but these errors were encountered: