Initial commit, WIP.

This commit is contained in:
Junade Ali
2017-01-13 23:52:27 +00:00
commit a49c655e77
13 changed files with 2150 additions and 0 deletions

29
src/Auth/APIKey.php Normal file
View File

@@ -0,0 +1,29 @@
<?php
/**
* User: junade
* Date: 13/01/2017
* Time: 16:55
*/
namespace Cloudflare\API\Auth;
class APIKey implements Auth
{
private $email;
private $apiKey;
public function __construct(String $email, String $apiKey)
{
$this->email = $email;
$this->apiKey = $apiKey;
}
public function getHeaders(): array
{
return [
'X-Auth-Email' => $this->email,
'X-Auth-Key' => $this->apiKey
];
}
}