/** * @Given a refresh token */ public function aRefreshToken() { //$this->refreshToken = $this->getEnvValueAndThrowIfNotSet("GettyImagesApi_RefreshToken"); $envToGetKeyFrom = "GettyImagesApi_UserName"; $username = $this->getEnvValueAndThrowIfNotSet($envToGetKeyFrom); $envToGetKeyFrom = "GettyImagesApi_UserPassword"; $password = $this->getEnvValueAndThrowIfNotSet($envToGetKeyFrom); $sdk = new GettyImages_Client($this->sharedContext->apiKey, $this->sharedContext->apiSecret, $username, $password, null); $this->accessTokenResponse = $sdk->getAccessToken(); $this->refreshToken = $this->accessTokenResponse['refresh_token']; }