I have an Amazon S3 account and have downloaded the AWSiOSSDK framework/SDK pack. The example works fine. I can “List Buckets” and upload sample data.
I want to use S3 to backup user data and then provide the opportunity to download the same backup to restore the data as and when needed.
I thought it would be easy to identify the methods/classes to do this, but I am struggling. I have looked through the documentation but it is overwhelming (for such a “straight forward” requirement). I cannot find any online tutorials either. I tried stripping out the relevant code & frameworks from Amazon’s example, but stopped after hours of trying to get anything to work.
Does anyone point me to a tutorial (or provide sample code) showing how to use the Amazon SDK in XCode? This is the first time I have tried online backup on iPhone, so please excuse if this seems simplistic.
Appreciate your help.
To download:
response.body is an NSData with the the download
To upload, S3PutObjectRequest works much the same way. You can specify either a filename or NSData.