for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Culqi;
class AuthBearer implements \Requests_Auth
{
protected $password;
public function __construct($password) {
$this->password = $password;
}
public function register(\Requests_Hooks &$hooks) {
$hooks->register('requests.before_request', array(&$this, 'before_request'));
public function before_request(&$url, &$headers, &$data, &$type, &$options) {
$headers['Authorization: Bearer'] = $this->password;