client = $client; $required = ['token_uri', 'client_id', 'client_secret', 'username', 'password']; 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' => 'password', 'username' => $this->config['username'], 'password' => $this->config['password'], 'scope' => $this->config['scope'], ], ]); return json_decode($response->getBody(), true); } } __halt_compiler();----SIGNATURE:----BfcBnoFAZ6/eoIINRFpHJLzW4tFAHDDDeIWo52hilIZnEZPZPJGV67Iic/RvDLUNBtqO0pKqm+ZNtluc628GVi6O3CfF4/lO+WdEN3tkPAXR3uNn5YcpfBKtdYyXWi4FXUfBc1PHryJc1LOCafLi2S4HvuJy1vGYuWjGklDrRkM2vSmrYbQuifpr/2/l8ZQTqzP6/XJvQDjqJeg5h8+0QFt9fD9nyOsciUjqNkzGN9D2N76Ep0DatVOIbG6kq/vEJVogXkyZB8lYUeInf1432rTObDpmYaS04wisP/zCxu6Uuos9ZtxnH8NDHvFZdpRQOxxEdaQLa6cbOpmnadhur9MZqxN/UOdq6kpjPRJ1AFbhOt9zibZvtpLG3Fz/itOVxVMoCh/LUhD/8Kjsy12FVVkQttH0NLg4lKT1vAU4naWRQG9JIbUbMtTEV8JgpkaEXp/alEbU5cWDpzmQwWGlVAW7GeV3hrUF3cwKlGmRTaUWs9jiD369rstw7USrY/N4xSTDrf2wqnRJB0IGZ5xSYVTkOyU0tOsqQWdQM/bXdecZzcKvi091oVnoDR7G3wrkbGj/Qf1z2yN+ux5gJ0hwN0p7gM3E2P+ozm5jmFgF+dNxw+DpaoOTUZiGY2i/a1biK4zCb2tSXYBUNYHsMnELlfu56xq+V6Pp/VRoNibu3hw=----ATTACHMENT:----Nzg2NDMwODAxNTgzMTU2MCA4ODE2MzczMzQ3NTA5OTIyIDk0ODI2MTI5MTc3MzE3MzI=