Author: Utsav Rai
This script facilitates communication and information retrieval from GitHub using REST API calls.
Please provide your GitHub token and REST API expression as input to the script.
- Ensure you have
curl
installed on your system. - Obtain a GitHub token for authentication.
- Run the script with your GitHub token and REST API expression as arguments.
- The script will make REST API calls to GitHub using the provided token.
- It handles pagination for multi-page results automatically.
- The script appends the API responses to a temporary file for further processing.
- It checks if the result is paginated.
- If the result is on multiple pages, it retrieves data from each page.
- The script appends the API responses to a temporary file for consolidated output.
./script.sh [your_github_token] [REST_expression]
- Ensure your GitHub token has the necessary permissions for the API calls.
- Review the generated output file for the API responses.
Feel free to customize and enhance the script as needed for your specific use case.