PHP library now supports multipart/form-data content-type and binary fields
This commit is contained in:
18
main/mashape/authentication/MashapeAuthentication.php
Normal file
18
main/mashape/authentication/MashapeAuthentication.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/AuthenticationUtil.php");
|
||||
require_once(dirname(__FILE__) . "/HeaderAuthentication.php");
|
||||
|
||||
class MashapeAuthentication extends HeaderAuthentication {
|
||||
|
||||
private $header;
|
||||
|
||||
function __construct($publicKey, $privateKey) {
|
||||
$this->header = AuthenticationUtil::generateAuthenticationHeader($publicKey, $privateKey);
|
||||
}
|
||||
|
||||
public function handleHeader() {
|
||||
return $this->header;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user