src/EdpGithub/Listener/Auth/UrlToken.php
public function preSend(Event $e)
    {
        $validator = new NotEmpty();

        if (!isset($this->options['tokenOrLogin'])
            || !$validator->isValid($this->options['tokenOrLogin'])
        ) {
            throw new Exception\InvalidArgumentException('You need to set OAuth token!');
        }

        /* @var Http\Request $request */
        $request = $e->getTarget();

        $query = $request->getQuery();
        $query->set('access_token', $this->options['tokenOrLogin']);
    }
public function preSend(Event $e)
    {
        $validator = new NotEmpty();

        if (!isset($this->options['tokenOrLogin'])
            || !$validator->isValid($this->options['tokenOrLogin'])
        ) {
            throw new Exception\InvalidArgumentException('You need to set OAuth token!');
        }

        /* @var Http\Request $request */
        $request = $e->getTarget();

        $query = $request->getQuery();
        $query->set('access_token', $this->options['tokenOrLogin']);
    }
public function preSend ( Event $ e ) { $ validator = new NotEmpty ( ) ; if ( ! isset ( $ this -> options [ 'tokenOrLogin' ] ) || ! $ validator -> isValid ( $ this -> options [ 'tokenOrLogin' ] ) ) { throw new Exception \ InvalidArgumentException ( 'You need to set OAuth token!' ) ; } /* @var Http\Request $request */ $ request = $ e -> getTarget ( ) ; $ query = $ request -> getQuery ( ) ; $ query -> set ( 'access_token' , $ this -> options [ 'tokenOrLogin' ] ) ; }
Add access token to Request Parameters

@throws Exception\InvalidArgumentException
Add access token to Request Parameters