如何使用Guzzle向Checker API发出请求?

I want to use checker API with Guzzle 6, so how can I make the following request using guzzle?

$ curl https://api.checkr.com \
        -u YOUR_TEST_API_KEY:

I tried the following way but I know its wrong!

$res = $client->request('GET', 'https://api.checkr.com', ['-u' => 'MY_TEST_API_KEY']);

Thanks

Based on documents its asking you to pass your token as username and empty password. Please try below code. Just replace YOUR_TEST_API_KEY with right key ;)

$res = $client->request('GET', 'https://api.checkr.com', ['auth' => ['YOUR_TEST_API_KEY', null]]);