/** * Assembles the http request for use with parsing documents * @return Response */ private function assembleRequest() { return $this->client->post($this->endPoint . '/parse', ['body' => $this->assembleFilesIntoMultipart(), 'headers' => ['Content-Type' => 'multipart/form-data'], 'auth' => $this->authentication->toAuthHeaders()]); }
/** * Assembles the http request for use with parsing documents * @return Response */ private function assembleRequest($uri) { return $this->client->get($uri, ['auth' => $this->authentication->toAuthHeaders()]); }