Skip to content

How do I call /installation/repositories API? #2104

Closed Answered by EnricoMi
dougdonohoe asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@AleksandraAleksandrova
Comment options

Comment options

You must be logged in to vote
1 reply
@AleksandraAleksandrova
Comment options

Answer selected by EnricoMi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants