Created
June 26, 2012 13:55
-
-
Save seedprod/2995920 to your computer and use it in GitHub Desktop.
Create Amazon S3 expiring link
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $product_details = seedprod_get_product_info($slug); | |
| $api_key_details = seedprod_get_api_key_info($api_key); | |
| $version = trim($product_details['version']); | |
| require_once 'amazons3-php/sdk.class.php'; | |
| $s3 = new AmazonS3(); | |
| $download_link = $s3->get_object_url('static.seedprod.com', 'files/'.$slug.'-'.$version.'.zip', '48 hours'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment