Android code like this private static final String ACCESS_KEY = "************"; private static final String SECRET_KEY = "***************";
private static AmazonS3Client s3Client = new AmazonS3Client(new BasicAWSCredentials(ACCESS_KEY, SECRET_KEY));
public static String generateUrl(String url) {
if (url == null || "".equals(url)) return "";
AmazonS3URI s3URI = new AmazonS3URI(url);
return s3Client.generatePresignedUrl(new GeneratePresignedUrlRequest(s3URI.getBucket(), s3URI.getKey())).toString();
}
iOS installed for how to use by AWSiOSSDKv2 URL like @“http://ift.tt/1LUqzgs”
how to ues @“http://ift.tt/1LUqzgs”
thank you very much
Aucun commentaire:
Enregistrer un commentaire