web_programming.fetch_github_info ================================= .. py:module:: web_programming.fetch_github_info .. autoapi-nested-parse:: 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 ---------- .. autoapisummary:: web_programming.fetch_github_info.AUTHENTICATED_USER_ENDPOINT web_programming.fetch_github_info.BASE_URL web_programming.fetch_github_info.USER_TOKEN Functions --------- .. autoapisummary:: web_programming.fetch_github_info.fetch_github_info Module Contents --------------- .. py:function:: fetch_github_info(auth_token: str) -> dict[Any, Any] Fetch GitHub info of a user using the requests module .. py:data:: AUTHENTICATED_USER_ENDPOINT :value: 'https://api.github.com/user' .. py:data:: BASE_URL :value: 'https://api.github.com' .. py:data:: USER_TOKEN