📜  guzzlehttp php 基本身份验证 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:49.850000             🧑  作者: Mango

代码示例1
$client = new GuzzleHttp\Client();
$res = $client->request('GET', 'https://api.github.com/user', [
    'auth' => ['user', 'pass']
]);