private function requestAccess($code)
    {
        $this->imgur->requestAccessToken($code);

        // save the new token
        $token = $this->imgur->getAccessToken();
        $this->store->set('imgur-token', $token);

        // authenticate the user with the new token
        $this->authenticateUser($token);
    }
private function requestAccess($code)
    {
        $this->imgur->requestAccessToken($code);

        // save the new token
        $token = $this->imgur->getAccessToken();
        $this->store->set('imgur-token', $token);

        // authenticate the user with the new token
        $this->authenticateUser($token);
    }
private function requestAccess ( $ code ) { $ this -> imgur -> requestAccessToken ( $ code ) ; // save the new token $ token = $ this -> imgur -> getAccessToken ( ) ; $ this -> store -> set ( 'imgur-token' , $ token ) ; // authenticate the user with the new token $ this -> authenticateUser ( $ token ) ; }
Get the user's token by requesting access
@param  string $code the code returned by imgur
@return void
Get the user s token by requesting access