Last active
January 24, 2020 11:14
-
-
Save dhaniksahni/4c1f65343a130640ce9b997ef685205d to your computer and use it in GitHub Desktop.
This file contains 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
public class S3Controller { | |
@AuraEnabled | |
public static FileData GetS3FileUsingFileId(string recordId) | |
{ | |
String key = '**************'; | |
String secret = '*********************************'; | |
String bucket = 'salesforcecodex'; | |
String host = 's3-us-west-1.amazonaws.com'; | |
String method = 'GET'; | |
AWSService service=new AWSService(key,secret,bucket,method,host); | |
FileData data=service.GetDocumentUsingFileId(recordId); | |
return data; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment