我正在使用"guzzlehttp/guzzle": "~6.0"
并尝试使用下面的代码github用户。Laravel:GuzzleHttp客户端
$client = new \GuzzleHttp\Client();
$request = $client->createRequest('GET', 'https://api.github.com/users');
$query = $request->getQuery();
$query->set('since',135);
$response = $request->send();
$oResponse = json_decode($response->getBody(true));
但我得到错误 Argument 3 passed to GuzzleHttp\Client::request() must be of the type array, string given
但是这种方法适用于"guzzle/guzzle": "^3.9",
我不知道在哪里,我失去了一些东西。
这是非常好的技术信息,可以解释为什么会遇到错误,但它不能提供有关解决问题的快速解决方案。你能扩展这个答案吗? – dctucker
版本不匹配。开发一个API,而另一个则是系统上的实际内容。 –