Пример #1
0
 /**
  * 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()]);
 }
Пример #2
0
 /**
  * Assembles the http request for use with parsing documents
  * @return Response
  */
 private function assembleRequest($uri)
 {
     return $this->client->get($uri, ['auth' => $this->authentication->toAuthHeaders()]);
 }