Ejemplo n.º 1
0
 /**
  * @param int $limit
  * @param \DateTime $createdBefore
  * @param \DateTime $createdAfter
  * @return \Doctrine\Common\Collections\ArrayCollection
  */
 public function getDocuments($limit = 10, \DateTime $createdBefore = null, \DateTime $createdAfter = null)
 {
     $queryData = ['limit' => $limit, 'created_before' => $createdBefore ? $createdBefore->getTimestamp() : null, 'created_after' => $createdAfter ? $createdBefore->getTimestamp() : null];
     return $this->responseHandler->getDocuments($this->sendRequest($this->clientManager->getApiClient(), 'GET', 'documents', ['query' => $queryData]));
 }