Skip to content

Instantly share code, notes, and snippets.

@rap2hpoutre rap2hpoutre/guzzle.php
Last active Jun 21, 2017

Embed
What would you like to do?
One line guzzle for json rest api
<?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
You can’t perform that action at this time.