amazon

Amazon api not deleting my products from inventory

邮差的信 提交于 2019-12-10 20:29:44
问题 I'm sending $feed = <<<EOD <?xml version="1.0"?> <AmazonEnvelope xsi:noNamespaceSchemaLocation="amzn-envelope.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Header> <DocumentVersion>1.01</DocumentVersion> <MerchantIdentifier>XXMYMERCHANTXX</MerchantIdentifier> </Header> <MessageType>Product</MessageType> EOD; foreach($skus as $k => $v) { $feed = $feed . <<<EOD <Message> <MessageID>$count</MessageID> <OperationType>Delete</OperationType> <Product> <SKU>$k</SKU> </Product> <

How do I easily restore purchases using the Amazon API?

时间秒杀一切 提交于 2019-12-10 19:11:46
问题 I'm trying to restore purchases just like iOS, and I can't figure out how to easily restore an IAP entitlement purchase with the Amazon API. If I send another request with the SKU to the PurchasingManager , it returns a PurchaseResponse , but that PurchaseResponse doesn't return a valid Receipt if the SKU has already been purchased. It's null. Seems like I would need that SKU to do any kind of processing. 回答1: Found how to do this. Turns out a different function call is needed instead of the

Make Amazon S3 files available only to logged in users

冷暖自知 提交于 2019-12-10 15:27:34
问题 How do I make the files in Amazon S3 accessible only to logged in users. I use PHP for my website. Static files are stored in Amazon S3. Only users logged in to my website should be able to access the files in Amazon cloud. Is it possible? 回答1: You can use signed URL that are generated by your application based on users logins: http://docs.aws.amazon.com/AmazonS3/latest/dev/S3_QSAuth.html 来源: https://stackoverflow.com/questions/16028777/make-amazon-s3-files-available-only-to-logged-in-users

Amazon price in Google Spreadsheets

浪子不回头ぞ 提交于 2019-12-10 14:19:11
问题 I tried following the answers gave here, but I get the error Imported Xml content can not be parsed . Here's what I tried: =importXml("http://www.amazon.it/Asus-GeForce-Scheda-Display-Edition/dp/B00SKWIISQ/","//span[@id='priceblock_ourprice']") =importxml(hyperlink(concatenate("http://www.amazon.it/Asus-GeForce-Scheda-Display-Edition/dp/B00SKWIISQ/")),"//*[@id='priceblock_ourprice']") None of them worked.. EDIT: The functions are intermittently working. Seems there's an issue specifically

How to retrieve response from Amazon SES?

允我心安 提交于 2019-12-10 14:05:00
问题 I have the code to verify email address in Amazon ses <?php $sesClient = SesClient::factory(array( 'key' => 'secret key', 'secret' => 'secret', 'profile' => 'user_name', 'region' => 'us-east-1' )); $result = $sesClient->verifyEmailAddress(array('EmailAddress'=> $email)); ?> My output for $result is like this: object(Guzzle\Service\Resource\Model) { [protected] structure => null [protected] data => array() } I actually got verified email in the email id I have specified. My question is, how to

How to get Amazon Customer review on magento site

柔情痞子 提交于 2019-12-10 12:05:21
问题 i want to show the amazon customer review on my magento site ... i searched a lot and i found some links which showing me the steps for this.. <iframe src="http://www.amazon.com/reviews/iframe?akid=[AWS Access Key ID]&asin=0316067938&exp=2011-08-01T17%3A54%3A07Z&linkCode=xm2&summary=0&tag=ws&truncate=256&v=2&sig=[Signature]" /> In this iframe AWSAccessKeyId and Signature is using .... i got the AWSAccessKeyId but i haven't found the Signature . so please can you tell me, from where i get the

PHP: How to sync data between s3 buckets using php code without using the CLI .?

半城伤御伤魂 提交于 2019-12-10 11:44:56
问题 I can't seem to find sync and copy options in the php sdk for amazon-s3. Currently I am using aws s3 cp/sync CLI command from within PHP code to achieve this which doesn't seem very neat to me. Any ideas? 回答1: You can do this with a combination of two features in the PHP SDK. First, checkout the S3Client::uploadDirectory() method (see user guide). You can upload a while directory's contents like this: $s3Client->uploadDirectory('/local/directory', 'your-bucket-name'); If you combine this with

Delete multiple objects Amazon s3 PHP SDK

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 10:15:30
问题 I'm having issues deleting multiple objects at once.. Using this library- https://github.com/aws/aws-sdk-php-laravel - I have no issues with anything else using the library (putting, getting, deleting single objects, etc.) try { $s3 = AWS::get('s3'); $s3->deleteObjects(array( 'Bucket' => $bucket, 'Objects' => $json['attachmentArray'] )); return "Success deleting files."; } catch (S3Exception $e) { return "There was an error.\n"; } deleteObjects Amazon Docs- http://docs.aws.amazon.com/AmazonS3

Amazon Android App Market Results [closed]

試著忘記壹切 提交于 2019-12-10 03:39:31
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 years ago . For you guys that have apps in the Amazon App Store, how is it going? I just wonder if your experience has been like mine. 1) It takes about a week to 10 days to get an app approved. Based on the nature of my apps, I update the apps about once a month, so... I end up running the old version on Amazon for about

How to deal with the amazon ec2's clock drift?

社会主义新天地 提交于 2019-12-10 01:04:39
问题 We have a couple of ec2 instances on amazon, and we used amazon AIM Linux to set up. The instance type is m1.medium. Everything is going well until this week. We found from log file that there would be a huge clock drift happened suddenly, and sometimes there has a 5-minutes discrepancy。 I would like to ask if anyone else encounter this problem? How to deal with it? 回答1: Time drift can occur due to over utilization of your instances resources. I would encourage you to check you cloudwatch CPU