Created
January 18, 2018 00:25
-
-
Save badcrocodile/764df15345da39a077887f83b68910d6 to your computer and use it in GitHub Desktop.
Using guzzle with api
This file contains 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
// Using Guzzle | |
$client = new Client(); | |
$response = $client->get($this->api_url_path); | |
$this->api_data = $response->getBody()->getContents(); | |
var_dump($this->api_data); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment