How do I call /installation/repositories API? #2104
-
Using PyGithub, is it possible to call the https://docs.github.com/en/rest/reference/apps#installations |
Beta Was this translation helpful? Give feedback.
Answered by
EnricoMi
Jun 27, 2023
Replies: 2 comments 2 replies
-
So far the only way to do this is to construct an
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Have you tried: import github
auth = github.Auth.AppAuth(app_id, private_key)
gi = github.GithubIntegration(auth=auth)
installation = gi.get_app_installation(installation_id)
for repo in installation.get_repos():
print(repo.full_name) This requires pygithub>=1.59.0. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
EnricoMi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Have you tried:
This requires pygithub>=1.59.0.