laravel5.4 guzzlehttp6.0 怎么使用

use GuzzleHttpClient;

$client = new GuzzleHttpClient();
$res = $client->request('GET', 'https://api.github.com/user', [

'auth' => ['user', 'pass']

]);
echo $res->getStatusCode();

HUWWW
浏览 417回答 2
2回答
打开App,查看更多内容
随时随地看视频慕课网APP