Latest 2.0.1
Homepage https://github.com/AFNetworking/AFAmazonS3Client
License MIT
Platforms ios 6.0, osx 10.8, requires ARC
Dependencies AFNetworking
Authors

AFAmazonS3Manager

AFAmazonS3Manager is an AFHTTPRequestOperationManager subclass for interacting with the Amazon S3 API.

Example Usage

AFAmazonS3Manager *s3Manager = [[AFAmazonS3Manager alloc] initWithAccessKeyID:@"..." secret:@"..."];
s3Manager.requestSerializer.region = AFAmazonS3USWest1Region;
s3Manager.requestSerializer.bucket = @"my-bucket-name";

NSString *destinationPath = @"/pathOnS3/to/file.txt";

[s3Manager postObjectWithFile:@"/path/to/file.txt"
              destinationPath:destinationPath
                   parameters:nil
                     progress:^(NSUInteger bytesWritten, long long totalBytesWritten, long long totalBytesExpectedToWrite) {
                        NSLog(@"%f%% Uploaded", (totalBytesWritten / (totalBytesExpectedToWrite * 1.0f) * 100));
}
                      success:^(AFAmazonS3ResponseObject *responseObject) {
                        NSLog(@"Upload Complete: %@", responseObject.URL);
}
                      failure:^(NSError *error) {
                         NSLog(@"Error: %@", error);
}];

Contact

Mattt Thompson

License

AFAmazonS3Manager is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "AFAmazonS3Client",
    "version": "2.0.1",
    "summary": "AFNetworking extension for the Amazon S3 API.",
    "homepage": "https://github.com/AFNetworking/AFAmazonS3Client",
    "social_media_url": "https://twitter.com/AFNetworking",
    "license": "MIT",
    "authors": {
        "Mattt Thompson": "[email protected]"
    },
    "source": {
        "git": "https://github.com/AFNetworking/AFAmazonS3Client.git",
        "tag": "2.0.1"
    },
    "platforms": {
        "ios": "6.0",
        "osx": "10.8"
    },
    "source_files": "AFAmazonS3Client",
    "requires_arc": true,
    "deprecated": true,
    "deprecated_in_favor_of": "AFAmazonS3Manager",
    "dependencies": {
        "AFNetworking": [
            "~>2.2"
        ]
    }
}

Pin It on Pinterest

Share This