/** * API for authentication in Maxoptra * Input data for authentication request should be sent as * attributes of request and should not be included into request body. * * @param Request\Session $request * @return Response $response * @throws \InvalidArgumenException */ public function createSession(Request\Session $request) { $response = $this->client->request('POST', 'authentication/createSession', ['headers' => $this->headers, 'query' => ['accountID' => $request->getAccount(), 'user' => $request->getUser(), 'password' => $request->getPassword()]]); return $response; }