public function tokenExchange($code)
        {
            $parameters = array(
                'client_id'     => $this->clientId,
                'client_secret' => $this->clientSecret,
                'code'          => $code,
            );

            return $this->request(
                $this->authUrl . 'token',
                $parameters
            );
        }
public function tokenExchange($code)
        {
            $parameters = array(
                'client_id'     => $this->clientId,
                'client_secret' => $this->clientSecret,
                'code'          => $code,
            );

            return $this->request(
                $this->authUrl . 'token',
                $parameters
            );
        }
public function tokenExchange ( $ code ) { $ parameters = array ( 'client_id' => $ this -> clientId , 'client_secret' => $ this -> clientSecret , 'code' => $ code , ) ; return $ this -> request ( $ this -> authUrl . 'token' , $ parameters ) ; }
Authenticates token returned from API

@param string $code

@link http://strava.github.io/api/v3/oauth/#post-token

@return string
Authenticates token returned from API