Trying to get to get JSON response from API that uses digest authentication. I am using Guzzle for the client.
This is what I have so far and doesn't seem to work. Any suggestion?
<?php
require 'vendor/autoload.php';
use GuzzleHttp\Client;
$client = new Client([
'base_uri' => 'https://10.1.1.1',
'timeout' => 2.0,
]);
$client->setDefaultOption('verify', false);
$client->request('POST', '/json', ['auth' => ['username', 'password', 'digest']]);