Merge pull request #4 from cloudflare/COM-40

COM-40 :: Added None Auth class, IPs endpoint and associated tests
This commit is contained in:
Junade
2017-09-05 13:13:03 +01:00
committed by GitHub
11 changed files with 155 additions and 52 deletions

View File

@@ -19,8 +19,12 @@ class Guzzle implements Adapter
/**
* @inheritDoc
*/
public function __construct(Auth $auth, String $baseURI = "https://api.cloudflare.com/client/v4/")
public function __construct(Auth $auth, String $baseURI = null)
{
if ($baseURI === null) {
$baseURI = "https://api.cloudflare.com/client/v4/";
}
$headers = $auth->getHeaders();
$this->client = new Client([