-
-
Notifications
You must be signed in to change notification settings - Fork 598
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
Missing header in /user/installations
requests
#882
Comments
@vovayatsyuk Can you add the php-github-api/lib/Github/Api/Repository/Protection.php Lines 35 to 41 in 0ce1f09
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These two methods need a
application/vnd.github.machine-man-preview+json
header: https://github.com/KnpLabs/php-github-api/blob/master/lib/Github/Api/CurrentUser.php#L187-L206Here is a new requirement:
https://developer.github.com/v3/apps/installations/#list-app-installations-accessible-to-the-user-access-token
https://developer.github.com/v3/apps/installations/#list-repositories-accessible-to-the-user-access-token
I can create a PR and move the methods to Apps.php which already has a method to add required header, or I can copy AcceptHeaderTrait to the CurrentUser class.
How do you want to fix it?
The text was updated successfully, but these errors were encountered: