Files
unirest-php/main/mashape/authentication/MashapeAuthentication.php
2012-10-10 16:45:55 -07:00

17 lines
432 B
PHP

<?php
require_once(dirname(__FILE__) . "/AuthenticationUtil.php");
require_once(dirname(__FILE__) . "/HeaderAuthentication.php");
class MashapeAuthentication extends HeaderAuthentication {
private $headers;
function __construct($publicKey, $privateKey) {
$this->headers = array(AuthenticationUtil::generateAuthenticationHeader($publicKey, $privateKey));
}
public function handleHeaders() {
return $this->headers;
}
}
?>