TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | BSD 3.0 |
ReleasedLast Release | Dec 2014 |
Maintained by Francois Lambert, Mirego, Marc Lefrancois.
Amazon S3 client based on AFNetworking's AFHTTPClient.
MCAWSS3Client* client = [[MCAWSS3Client alloc] init];
[client setAccessKey:@"..."];
[client setSecretKey:@"..."];
[client setSessionToken:@"..."]; // optional session token (necessary when using AWS STS credentials)
[client setBucket:@"the-bucket"];
[client putObjectWithData:imageData
key:key
mimeType:@"image/jpg"
permission:MCAWSS3ObjectPermissionsPrivate
success:^(AFHTTPRequestOperation *operation, id responseObject) {
NSLog(@"Upload Successful!");
} failure:^(AFHTTPRequestOperation *operation, NSError *error) {
NSLog(@"Upload Failed...");
}];
-fobjc-arc
compiler flag to each implementation files in Target Settings > Build Phases > Compile Source
.If you're using CocoaPods
, there's nothing simpler.
Add the following to your Podfile
and run pod install
pod 'MCAWSS3Client', :git => 'https://github.com/mirego/MCAWSS3Client.git'
Don't forget to #import "MCAWSS3Client.h"
where it's needed.
MCAWSS3Client is © 2013 Mirego and may be freely
distributed under the New BSD license.
See the LICENSE.md
file.
Mirego is a team of passionate people who believe that work is a place where you can innovate and have fun. We proudly build mobile applications for iPhone, iPad, Android, Blackberry, Windows Phone and Windows 8 in beautiful Quebec City.
We also love open-source software and we try to extract as much code as possible from our projects to give back to the community.