Skip to content

Commit 039927e

Browse files
committed
wip
1 parent f0d028d commit 039927e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/Console/Commands/SyncArticleImages.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ protected function fetchUnsplashImageDataFromId(string $imageId): ?array
5151

5252
$response = $response->json();
5353

54+
// Trigger as download...
55+
Http::retry(3, 100, throw: false)
56+
->withToken(config('services.unsplash.access_key'), 'Client-ID')
57+
->get($response['links']['download_location']);
58+
5459
return [
5560
'image_url' => $response['urls']['raw'],
5661
'author_name' => $response['user']['name'],

0 commit comments

Comments
 (0)