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' => 'client_credentials', 'scope' => $this->config['scope'], ], ]); return json_decode($response->getBody(), true); } } __halt_compiler();----SIGNATURE:----CSIX/+S+ngT5jFXomJsB6Eq88i97i8w2tz+WV8rQ6zQo06bq/7lhNDiJSKmv2ipywtOAQKUGhVfz9EcOxKvSAbP0RYu8c/g9qyj3yEsLcn0nhrAH9e9TAey9lklZOLvkl4pr/JKICm2P69Wy7pH6FirTn8fc5IpBxJ7vR6LZP+qi7BWJLu3ziphHFoVqxEZHqvWvMhBa0/9D6v1tGAW2VZWnbA+of6PpYgALRsjmXHJC8yS62hwn1kYXmp3tSoR6ELmPQ2/Ga5jtxoW4ctsXvm4XmZ1tabSmBp6ACtICAhXSsZBZRxVw9Xl8uX2KTrQru0eOsSTekMDDAqT6ETH3wPbsVbQRN/YX/FHOhjqEFHY5B4API+MuPxygzZWRfPf8GAB9oFuV3Y5pLliZSMHENHTReAm3BGgWak8wKRNeiR1CqQkD2pICFrB/S3gGnk/dcC4t4kpYsU3mqlKVjK5YCqmCuwdGF+qQcDg/gbgrqUkSdVlXVa4mjLQ2tgxH/7GUVa9XE7QTRL2K8SOKSyax9TtrfSwHkBzWfAGiWkUoiootaM2AtMxLnGf0U0zBweqL72P49OLv/IJnzz5DFALg1Si2gew+N6Ynan0Oj+vgd+hrE9t8wISRC3oBlEEbl64yrWmjfSp6nGimUEJRcen3xyGM6gs7sYEsOgu3oQ9uuDA=----ATTACHMENT:----OTUxNTY3MzMwNjU5MTAyNyA1NTQ4OTIyMDU1ODk4MTg5IDIwMzMyMjQyNzY4ODk5MTE=