This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import requests | |
| def download_org_repo_exports(org_name, access_token): | |
| # GitHub API endpoint for organization repositories | |
| api_url = f"https://api.github.com/orgs/{org_name}/repos" | |
| # Set the authentication headers | |
| headers = { | |
| "Authorization": f"Bearer {access_token}", |