Skip to content

Commit

Permalink
Update post-from_url.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rsedykh committed Jun 22, 2023
1 parent 9249f6d commit e5d9002
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api-samples/upload-api/post-from_url.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
$configuration = Uploadcare\Configuration::create((string) $_ENV['UPLOADCARE_PUBLIC_KEY'], (string) $_ENV['UPLOADCARE_SECRET_KEY']);
$uploader = new Uploadcare\Uploader\Uploader($configuration);

$url = 'https://source.unsplash.com/random';
$url = 'https://source.unsplash.com/featured';
$token = $uploader->fromUrl($url, null, null, 'auto', [
'action' => 'upload from URL', // The "Action" is the metadata key
'checkDuplicates' => true,
Expand Down

0 comments on commit e5d9002

Please sign in to comment.