PHP library now supports multipart/form-data content-type and binary fields
This commit is contained in:
21
main/mashape/authentication/QueryAuthentication.php
Normal file
21
main/mashape/authentication/QueryAuthentication.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/Authentication.php");
|
||||
|
||||
class QueryAuthentication implements Authentication {
|
||||
|
||||
private $params;
|
||||
|
||||
function __construct($queryKey, $queryValue) {
|
||||
$this->params = array($queryKey => $queryValue);
|
||||
}
|
||||
|
||||
public function handleHeader() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public function handleParams() {
|
||||
return $this->params;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user