Created
April 16, 2024 12:58
-
-
Save emmadesilva/c50013efd0dccbc164951b61a50a0b75 to your computer and use it in GitHub Desktop.
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
| <?php | |
| // Set the user agent as required by the GitHub API | |
| ini_set('user_agent', 'github.com/your-username'); | |
| // Now you can make requests to the GitHub API | |
| $response = file_get_contents('https://api.github.com/zen'); | |
| die($response); // Speak like a human. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment