Input and output file storage
The Lightroom API works with any public or signed URL. We've documented a few of the most common storage services and how to generate the URLs programmatically.
AWS S3: Pre-signed GET/PUT URL. See Amazon's documentation for more information about pre-signed URLs on S3. Below are code samples that show you how to generate your pre-signed URLs programmatically:
- Node.js Please note that creating pre-signed URLs for AWS S3 requires signature version S3V4. This is demonstrated in the sample code.
- Python
We also have a Python application that provides a working example of how to call our API using assets stored in AWS S3.
Google Drive: Signed GET/PUT URL. Learn how to set up your Google drive account for access to creating a signed URL. Here are some code samples for getting signed URLs.
Azure: SAS (Shared Access Signature) for upload/download. Learn how to generate a Shared Access Signature. Here are some code samples for generating a URL with Shared Access Signature.
Dropbox: Temporary upload/download URLs. See how to generate an upload/download. You can also create a file upload link for Dropbox.
You can test to see if your public URL or pre-signed URL is working. Run the cURL command below to see if your input file path is working:
Copied to your clipboardcurl -X GET <Your file path> --output <some-file.jpg>
If you are using a pre-signed URL, put your file path within "":
Copied to your clipboardcurl -X GET "<Your file path>" --output <some-file.jpg>
Run the cURL command below to see if your output file path is working:
Copied to your clipboardcurl -X PUT <Your file path> -d <some-file.txt>
If you are using a pre-signed URL, put your file path within "":
Copied to your clipboardcurl -X PUT "<Your file path>" -d <some-file.txt>
