Gateways
createSignedURL
Create a Signed URL for a file
Usage
Returns
- Type:
string
The full signed URL
Parameters
cid
- Type:
string
Accepts CID of the file you are trying to create a signed URL for
expires
- Type:
number
The number of seconds the signed URL should be valid for
date (Optional)
- Type:
number
A UNIX timestamp of the date a URL is signed
gateway (Optional)
- Type:
string
Use a Gateway domain other than the default domain from the config
optimizeImage (Optional)
- Type: OptimizeImageOptions
If the content being fetched is an image you can apply image optimizations to the image.