Skip to content
New issue

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

Allow specifying custom parameters #1057

Open
lexisother opened this issue Mar 14, 2022 · 1 comment · May be fixed by #1116
Open

Allow specifying custom parameters #1057

lexisother opened this issue Mar 14, 2022 · 1 comment · May be fixed by #1116

Comments

@lexisother
Copy link

The library locks you into providing only specific parameters. For example, \Api\CurrentUser:
image

The /user/repos endpoint has more parameters than just these, though, such as per_page, which is now being locked to 30 because users cannot specify a custom value.

If there is however a way to specify custom options without having to do any hacky things with $client->getHttpClient, I'd love to hear.

@reedy
Copy link

reedy commented Aug 11, 2023

https://github.com/KnpLabs/php-github-api/blob/0e2399c93eb53be2243871c420eb1c6641cf0c7b/doc/result_pager.md can be used as part of a workaround (for example, I wanted to get all issues in a repo)...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants