Previously in Guzzle 5.3: $response = $client->get('http://httpbin.org/get'); $array = $response->json(); // Yoohoo var_dump($array[0]['origin']); I could easily get a PHP array from a JSON response. Now In Guzzle 6, I...
I’m trying to write a wrapper around an api my company is developing. It’s restful, and using Postman I can send a post request to an endpoint like http://subdomain.dev.myapi.com/api/v1/auth/...
Does anybody know the correct way to post JSON using Guzzle? $request = $this->client->post(self::URL_REGISTER,array( 'content-type' => 'application/json' ),array(json_encode($_POST))); I get an internal server error response from the server. It...