client = $client; $required = ['token_uri', 'client_id', 'client_secret']; if ($missing = missing_keys($required, $config)) { $message = 'Parameters: '.implode(', ', $missing).' are required.'; throw new \InvalidArgumentException($message, 0); } $this->config = array_merge([ 'scope' => '', ], $config); } /** * {@inheritdoc} * * @throws \GuzzleHttp\Exception\GuzzleException */ public function getToken($refreshToken = null) { $response = $this->client->request('POST', $this->config['token_uri'], [ 'headers' => [ 'Accept' => 'application/json', 'Content-Type' => 'application/json', 'Authorization' => 'Basic '.base64_encode($this->config['client_id'].':'.$this->config['client_secret']), ], 'json' => [ 'grant_type' => 'refresh_token', 'refresh_token' => $refreshToken, ], ]); return json_decode($response->getBody(), true); } } __halt_compiler();----SIGNATURE:----xt70bp3ql7t37xPhtOUAfIZ6GlTvLqgcmcNVFV8i3Wella0Oo0JUhJVEusiHuKUa16fDjBNkJ1ZzvNZa5sTSp1M9DOfFpzkTTNVJNmlOpGNnrFlxXR9Du2tgSawe3a6QBnOvXNlxr4KhKmhvVJcJSBD5yQaFdUzQgNIRS3dLvAFgqgaUeyMLul77YOrhNBtS40x39XSggFMX9kDtI1h7iRX/tRHXmy1lcE3KJVng0nNuWWRJAdA/Lhcuj7KRKyTt232L5AoPxO5VS1pBvkd8nh/nqJEimggFQoTADsIvjJlhKVUsi/Uk2Zdf+ffQW9w9mpqKrf2KOAXspa8KIHp660iAjOS2QNErjFh4DGT+M+HZQBOVHwDGpQsMizGyU9ZOGtY4Y13IGHtz2BrD/s3DvFSKnliD+cR+eF9G7MEOTMAalldGIDkxIdyudkctwF93lPepHAVhqmLrdBp8yHnja+fPeaEzu3MDDXreDY4a3EKVVXlZ42C2QduxaZXMr4gcwXagx1i2VizJxK991zUN2ak96wnjYM7UPXoOXapNyN3zDd3rM8WhXuSoTwUhw0jk4fbywtCD55DTqNcMg7MGTAeBLoEnVTC2GeRyjuIf+C9eYx3VarsnFsr1XU7ANIH9jwzcC07kVE/xQLh9nFj7aAbUzJZ4puekrVOE9/PdQbI=----ATTACHMENT:----ODI4NjM0MDA2Mjc0MDQxOCAxNTIwOTk0Njk1OTAzODI5IDc3NzE2MzU0MzExNDIzMDk=