lib/Imgur/HttpClient/HttpClient.php
public function addAuthMiddleware($token, $clientId)
    {
        $this->stack->push(Middleware::mapRequest(function (RequestInterface $request) use ($token, $clientId) {
            return (new AuthMiddleware($token, $clientId))->addAuthHeader($request);
        }));
    }
public function addAuthMiddleware($token, $clientId)
    {
        $this->stack->push(Middleware::mapRequest(function (RequestInterface $request) use ($token, $clientId) {
            return (new AuthMiddleware($token, $clientId))->addAuthHeader($request);
        }));
    }
public function addAuthMiddleware ( $ token , $ clientId ) { $ this -> stack -> push ( Middleware :: mapRequest ( function ( RequestInterface $ request ) use ( $ token , $ clientId ) { return ( new AuthMiddleware ( $ token , $ clientId ) ) -> addAuthHeader ( $ request ) ; } ) ) ; }
Push authorization middleware.

@param array  $token
@param string $clientId
Push authorization middleware .