public function setAccessToken($accessToken)
    {
        $this->accessToken = $accessToken;
        $this->username = '';
        $this->password = '';
        $this->token = '';
        return $this;
    }
public function setAccessToken($accessToken)
    {
        $this->accessToken = $accessToken;
        $this->username = '';
        $this->password = '';
        $this->token = '';
        return $this;
    }
public function setAccessToken ( $ accessToken ) { $ this -> accessToken = $ accessToken ; $ this -> username = '' ; $ this -> password = '' ; $ this -> token = '' ; return $ this ; }
Set access token for OAuth2 authentication

Username + password and simple token will be cleared

@param string $accessToken

@return PhonegapBuildApi
Set access token for OAuth2 authentication