amazon

Amazon S3 copyObject permission

好久不见. 提交于 2019-12-02 22:08:39
I'v got user with all permissions. { "Statement": [ { "Effect": "Allow", "Action": "*", "Resource": "*" } ] } I'm using aws-sdk-php-2 to put and copy objects in bucket. http://docs.aws.amazon.com/aws-sdk-php-2/latest/class-Aws.S3.S3Client.html Put code works perfect $client->putObject(array( 'Bucket' => 'kiosk', 'Key' => 'test/orders/test.csv', 'SourceFile' => $sourcePath, )); After check if object created on S3 via https://console.aws.amazon.com/s3 I'm executing next script. $result = $client->copyObject(array( 'Bucket' => 'kiosk', 'CopySource' => 'test/orders/test.csv', 'Key' => 'test/test

Amazon Product Advertising API through Java/SOAP

浪尽此生 提交于 2019-12-02 21:10:48
I have been playing with Amazon's Product Advertising API, and I cannot get a request to go through and give me data. I have been working off of this: http://docs.amazonwebservices.com/AWSECommerceService/2011-08-01/GSG/ and this: Amazon Product Advertising API signed request with Java Here is my code.. I generated the SOAP bindings using this: http://docs.amazonwebservices.com/AWSECommerceService/2011-08-01/GSG/YourDevelopmentEnvironment.html#Java On the Classpath, I only have: commons-codec.1.5.jar import com.ECS.client.jax.AWSECommerceService; import com.ECS.client.jax

Amazon S3 architecture [closed]

烈酒焚心 提交于 2019-12-02 20:53:16
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. While the post @ http://highscalability.com/amazon-architecture explains Amazon's architecture in general, I am interested in knowing how Amazon S3 is implemented. Some of my guesses are A distributed file system like HDFS http://hadoop.apache.org/core/docs

How to get a full res image from an amazon zoom window

∥☆過路亽.° 提交于 2019-12-02 20:47:45
I started this just to use as an internal reference for a project, and now I'm kind of obsessed with it - Amazon uses a zoom plugin to slice up a large image into pieces, and each piece is an image: http://www.amazon.com/gp/product/images/0714859583/ref=dp_otherviews_z_5?ie=UTF8&s=books&img=5 but I figure somewhere there has to be a full, high-res image that is not sliced up. Anyone know how to grab this? I can get a small one and I can get all the large pieces, but I want to get the complete large image. Roopak Venkatakrishnan with a bit of googling, firebug work and reading some other posts

Amazon API - Instant Video results

喜夏-厌秋 提交于 2019-12-02 18:17:12
I am querying Amazon's Product Advertising API for Instant Video (streaming) results. Everything is working fine -- except that there is some missing information: Descriptions are not included in results. For example, on Amazon's website the movie "Food, Inc" (http://www.amazon.com/Food-Inc/dp/B002VRZEYM) has the description "An unflattering look inside America's corporate controlled food industry.". When queried via the API , however, no description is returned at all. Titles of TV shows are not included in results. For example, if you search for the 2nd episode of season 1 of Arrested

Replacing bytes of an uploaded file in Amazon S3

假如想象 提交于 2019-12-02 16:38:26
问题 I understand that in order to upload a file to Amazon S3 using Multipart, the instructions are here: http://docs.aws.amazon.com/AmazonS3/latest/dev/llJavaUploadFile.html How do I go about replacing the bytes (say, between the range 4-1523) of an uploaded file? Do I need to make use of Multipart Upload to achieve this? or do I fire a REST call with the range specified in the HTTP header? Appreciate any advice. 回答1: Objects in S3 are immutable. If it's a small object, you'll need to upload the

Amazon Product Advertising API : How to get a JSON response for ItemLookup/Search

北城以北 提交于 2019-12-02 16:36:09
I'm trying to get the details of Amazon product from its ASIN. The product API allows to do a Itemlookup with ASIN , but the return value is in XML . I want to do this call for Itemlookup from client side, so would like to do a JSONP call, which I couldn't find. I found some articles on the web to convert the XML to JSON format using XSLT stylesheet: (a) https://bitbucket.org/basti/python-amazon-product-api/src/tip/examples/json-results.py I tried using this python-amazon-product-api and this example, but I couldn't get a JSON return. (b) http://www.kokogiak.com/gedankengang/2006/05/consuming

AWS S3 Java SDK - Download file help

帅比萌擦擦* 提交于 2019-12-02 16:13:06
The code below only works for downloading text files from a bucket in S3. This does not work for an image. Is there an easier way to manage downloads/types using the AWS SDK? The example included in the documentation does not make it apparent. Thanks! AWSCredentials myCredentials = new BasicAWSCredentials( String.valueOf(Constants.act), String.valueOf(Constants.sk)); AmazonS3Client s3Client = new AmazonS3Client(myCredentials); S3Object object = s3Client.getObject(new GetObjectRequest("bucket", "file")); BufferedReader reader = new BufferedReader(new InputStreamReader( object.getObjectContent()

Getting price from Amazon with Xpath

你。 提交于 2019-12-02 15:55:59
问题 in the following page: http://www.amazon.com/Jessica-Simpson-Womens-Double-Breasted/dp/B00K65ZMCA/ref=sr_1_4_mc/185-0705108-6790969?s=apparel&ie=UTF8&qid=1413083859&sr=1-4 I am trying to get the price with the expression '//span[@id="priceblock_ourprice"]' but the result is an empty variable. the interesting part is that In other amazon pages, like this one : http://www.amazon.com/SanDisk-Cruzer-Frustration-Free-Packaging--SDCZ36-032G-AFFP/dp/B007JR532M/ref=sr_1_1?s=pc&ie=UTF8&qid=1413084653

How can I lookup data about a book from its barcode number? [closed]

落花浮王杯 提交于 2019-12-02 13:47:10
I'm building the world's simplest library application. All I want to be able to do is scan in a book's UPC (barcode) using a typical scanner (which just types the numbers of the barcode into a field) and then use it to look up data about the book... at a minimum, title, author, year published, and either the Dewey Decimal or Library of Congress catalog number. The goal is to print out a tiny sticker ("spine label") with the card catalog number that I can stick on the spine of the book, and then I can sort the books by card catalog number on the shelves in our company library. That way books on