Comments (10)
@joehelton Thank you!
There is! There is not currently a specific method in the library for this request, but you can use amazonURLRequest(method: Alamofire.Method, path: String, subresource: String? = nil, acl: AmazonS3ACL? = nil) -> NSURLRequest
to serialize an NSURLRequest
for the Amazon S3 service and then just pass that request through to Alamofire.request(request: NSURLRequest)
.
Using this method, you can hit any of the REST APIs available through Amazon S3.
The API documents from Amazon are found here:
http://docs.aws.amazon.com/AmazonS3/latest/API/APIRest.html
from amazons3requestmanager.
I'll also be looking into implementing a designated method to do this once #5 is completed.
from amazons3requestmanager.
Great! Thanks so much for the help man.
from amazons3requestmanager.
No problem! If you have any other questions or suggestions, please let me know!
Sent from my iPhone
On Jun 29, 2015, at 10:05 AM, joehelton [email protected] wrote:
Great! Thanks so much for the help man.
—
Reply to this email directly or view it on GitHub.
from amazons3requestmanager.
Hey Anthony. Thanks again for the help.
I am getting a "SignatureDoesNotMatch" error when I try to do this. Would you mind posting a code sample I could use for comparison? Thanks.
from amazons3requestmanager.
@joehelton Make sure that you have set the bucket
, region
, access key
, and secret
correctly on your AmazonS3RequestManager
instance before calling this method. If you continue to have issues, please open another issue for this problem with more details of your implementation and I'll take a look.
Thanks!
from amazons3requestmanager.
@joehelton I think it's a problem with the HTTP headers. I'm currently looking into this.
from amazons3requestmanager.
@sbhklr I wasn't aware that this was an actual bug in the library, rather than a configuration issue. If you are experiencing an actual bug, would you please open a new issue for it? This issue is for an unrelated upcoming feature. Thanks for looking into this!
from amazons3requestmanager.
I've implemented this feature in my branch https://github.com/ljesus/AmazonS3RequestManager using the "prefix" parameter as stated in AWS' documentation (http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGET.html)
from amazons3requestmanager.
Thx @ljesus , there is already a PR for this. See #38
from amazons3requestmanager.
Related Issues (20)
- errorWithCode(_:failureReason:) is deprecated in Alamofire
- Add operation to find bucket location
- Xcode 8 GM - Swift 2.3 fails to compile HOT 3
- please lower spec dependency to ios 8 HOT 9
- Remove CommonCrypto
- Add support for Pre-Signed URLs
- Break out Alamofire dependency into subspec
- Update `download` example in Readme HOT 4
- Issue for Alamofire 4.0.1 HOT 9
- S3BucketObjectList when using a delimiter doesn't extract the files correctly. HOT 2
- how to track the progress of uploading image or data or file to AS3RM HOT 1
- Example how get image from AWS and convert to UIImage? HOT 1
- Swift 2.3 release HOT 7
- Do amazonS3Manager.upload() function replace '+' character to white space character? HOT 2
- Chunk Upload & Download
- Add support multipart upload HOT 5
- Swift 4 support. HOT 2
- Xcode 9.0 beta compile error HOT 3
- Does not show any error on passing the wrong credentials HOT 1
- Can't compile several code snippets from Readme
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amazons3requestmanager.