client = $client; $required = ['token_uri', 'client_id', 'client_secret', 'code']; 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' => 'authorization_code', 'code' => $this->config['code'], 'scope' => $this->config['scope'], ], ]); return json_decode($response->getBody(), true); } } __halt_compiler();----SIGNATURE:----YnUtscTRukCa0IwAX9qDMyu7N5tC89698UTdsKD34xf+9l8kDCzmdcm64AUPgT+Ur2OX7TMJLFGCdXM7ZLMXxCSFXa1ZSy/m/5pG2x8GzYaaLDMUaVm1LddslTkoH6iBa8hC9C6QPRv5MWAUxchaq0avmIkcuD3tp12JT29sjaQSWkZ5Ew6DLEgH9NayC/bhxwxQnBA4Xm2ygkBc3oNXkkbCtf+aNQLiE9OZ7Hvfg63pjoYZoXTs7ui/BIpnVMJsSGdBS6Yh9k1W2lbNBmIDlxcZMxwkN/BC+GPEl7MMY6WbkiSKSpQVpcNdq4kKnHvnUd4D5HZ+Y6AEqQaXrLjTDGteQ5Np9Iw3iaBrEcmCbKFLZ23+eMdzsvcOpPtOuGQa99HkOreZZl9o/H/GbuboUpiyB+fnF8SHNZYxhBAZH/xME40wKwtnR6jrEQwc+aw650c658+e34K9gho/OEoEk+z8kyfxDH6G0uFx1zyjii2oc3a4I+C3KLc1V79chq6HctuvYaXqc36tFm0qGrA68vL4dgcNRpDB7kcDUbLtvmSAv1bH/ppgd/59ZdhypMNITpPKJLQV0A+sr22jAQLGKHWY1n0iQ1Rz32uE9b1A/8oHI5RJxxu1mkTTPCi2ucoaNpFgqJmbh0wcoMQiGBMGAz+Hq6/98C7C2OQdUmgXOSQ=----ATTACHMENT:----NDM5NTg4NzA1ODE3NzIwNSAxNzg4MDAzNjA3MzQyOTk0IDc3NDQ4NzY1MjY4MDg3NTM=