guzzlehttp php basic auth

43

guzzlehttp php basic auth -

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

Comments

Submit
0 Comments