Last active
June 21, 2017 08:15
-
-
Save rap2hpoutre/a29e321d975a7a51c576 to your computer and use it in GitHub Desktop.
One line guzzle for json rest api
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 | |
$a = json_decode((new GuzzleHttp\Client())->get('https://api.github.com/user')->getBody(), true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment