client->request('POST', '/oauth/token', [ 'form_params' => $attributes + [ 'grant_type' => $grantType, 'client_id' => $this->getClientId(), 'client_secret' => $this->getClientSecret(), ], ]); $result = new Result($response, null); } catch (RequestException $exception) { $result = new Result($exception->getResponse(), $exception); } $result->anikeenId = $this; return $result; } }