web_programming.fetch_github_info¶
Created by sarathkaul on 14/11/19 Updated by lawric1 on 24/11/20
Authentication will be made via access token. To generate your personal access token visit https://github.com/settings/tokens.
NOTE: Never hardcode any credential information in the code. Always use an environment file to store the private information and use the os module to get the information during runtime.
Create a “.env” file in the root directory and write these two lines in that file with your token:
#!/usr/bin/env bash
export USER_TOKEN=””
Attributes¶
Functions¶
|
Fetch GitHub info of a user using the requests module |
Module Contents¶
- web_programming.fetch_github_info.fetch_github_info(auth_token: str) dict[Any, Any] ¶
Fetch GitHub info of a user using the requests module
- web_programming.fetch_github_info.AUTHENTICATED_USER_ENDPOINT¶
- web_programming.fetch_github_info.BASE_URL = 'https://api.github.com'¶
- web_programming.fetch_github_info.USER_TOKEN¶