diff --git a/src/EnvatoApi.php b/src/EnvatoApi.php index 505f6cc..a23d0e7 100644 --- a/src/EnvatoApi.php +++ b/src/EnvatoApi.php @@ -34,7 +34,7 @@ public function getVersion(int $itemId): string { $response = $this->httpDownloader->get( self::API_BASE_URL . '/market/catalog/item-version?' . \http_build_query(['id' => $itemId]), - ['header' => ['Authorization: Bearer ' . $this->token]] + ['http' => ['header' => ['Authorization: Bearer ' . $this->token]]] ); // TODO HTTP 429 response. Included in this response is a HTTP header Retry-After @@ -57,7 +57,7 @@ public function getDownloadUrl(int $itemId): string { $response = $this->httpDownloader->get( self::API_BASE_URL . '/market/buyer/download?' . \http_build_query(['item_id' => $itemId]), - ['header' => ['Authorization: Bearer ' . $this->token]] + ['http' => ['header' => ['Authorization: Bearer ' . $this->token]]] ); // TODO HTTP 429 response. Included in this response is a HTTP header Retry-After