| 1 | <?php |
||
| 5 | class BasicAuth implements AuthValue |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * The application ID (also known as API key). |
||
| 9 | * |
||
| 10 | * @see https://developer.justgiving.com/apidocs/documentation#AppId |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | protected $appId; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * The username of the JustGiving user being authenticated. |
||
| 17 | * |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | protected $username; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * The password of the JustGiving user being authenticated. |
||
| 24 | * |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | protected $password; |
||
| 28 | |||
| 29 | public function __construct($appId, $username, $password) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Get the authentication headers. |
||
| 38 | * |
||
| 39 | * @return array |
||
| 40 | */ |
||
| 41 | 1 | public function getHeaders() |
|
| 48 | } |
||
| 49 |