File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ function getAmazonOrders() {
44
44
This example shows a function used to send a previously-created XML feed to Amazon to update Inventory numbers:
45
45
``` php
46
46
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
48
48
$amz->setFeedType("_POST_INVENTORY_AVAILABILITY_DATA_"); //feed types listed in documentation
49
49
$amz->setFeedContent($feed);
50
50
$amz->submitFeed();
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ function getAmazonOrders() {
29
29
This example shows a function used to send a previously-created XML feed to Amazon to update Inventory numbers:
30
30
``` php
31
31
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
33
33
$amz->setFeedType("_POST_INVENTORY_AVAILABILITY_DATA_"); //feed types listed in documentation
34
34
$amz->setFeedContent($feed);
35
35
$amz->submitFeed();
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ function getAmazonFeedStatus(){
43
43
*/
44
44
function sendInventoryFeed ($ feed ) {
45
45
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
47
47
$ amz ->setFeedType ("_POST_INVENTORY_AVAILABILITY_DATA_ " ); //feed types listed in documentation
48
48
$ amz ->setFeedContent ($ feed ); //can be either XML or CSV data; a file upload method is available as well
49
49
$ amz ->submitFeed (); //this is what actually sends the request
You can’t perform that action at this time.
0 commit comments