Skip to content

Commit 99b0458

Browse files
committed
Added store-omitting feature to examples
1 parent 2289825 commit 99b0458

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

INSTALL.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function getAmazonOrders() {
4444
This example shows a function used to send a previously-created XML feed to Amazon to update Inventory numbers:
4545
```php
4646
function sendInventoryFeed($feed) {
47-
$amz=new AmazonFeed("myStore"); //store name matches the array key in the config file
47+
$amz=new AmazonFeed(); //if there is only one store in config, it can be omitted
4848
$amz->setFeedType("_POST_INVENTORY_AVAILABILITY_DATA_"); //feed types listed in documentation
4949
$amz->setFeedContent($feed);
5050
$amz->submitFeed();

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function getAmazonOrders() {
2929
This example shows a function used to send a previously-created XML feed to Amazon to update Inventory numbers:
3030
```php
3131
function sendInventoryFeed($feed) {
32-
$amz=new AmazonFeed("myStore"); //store name matches the array key in the config file
32+
$amz=new AmazonFeed(); //if there is only one store in config, it can be omitted
3333
$amz->setFeedType("_POST_INVENTORY_AVAILABILITY_DATA_"); //feed types listed in documentation
3434
$amz->setFeedContent($feed);
3535
$amz->submitFeed();

examples/feed_examples.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function getAmazonFeedStatus(){
4343
*/
4444
function sendInventoryFeed($feed) {
4545
try {
46-
$amz=new AmazonFeed("myStore"); //store name matches the array key in the config file
46+
$amz=new AmazonFeed(); //if there is only one store in config, it can be omitted
4747
$amz->setFeedType("_POST_INVENTORY_AVAILABILITY_DATA_"); //feed types listed in documentation
4848
$amz->setFeedContent($feed); //can be either XML or CSV data; a file upload method is available as well
4949
$amz->submitFeed(); //this is what actually sends the request

0 commit comments

Comments
 (0)