Automation

Datafeed Studio come with a set of command-line scripts that you can use with your operating system’s scheduler software (e.g. cron).

The three scripts are located in the following folder :

admin/bin

and are described below :

import.php

This PHP file can be used to download and import (refresh) a single datafeed or all datafeeds.

To download all datafeeds use the following command :

php import.php all

To download a specific datafeed, suppy its ID (as displayed on the administration site) :

php import.php <id>

on the command-line.

listfeeds.php

This PHP command lists all the datafeeds in your system (ID and name). It can be useful if you are trying to quickly find the ID of a feed to use in conjunction with the import.php command described above.

To use it just enter :

php listfeeds.php

on the command-line.

amazonimport.php

This command refreshes your tracked Amazon products. For each Amazon product you have added via the administration site it contacts the Amazon Web Service to get the latest information about the product (price, stock, etc.) and updates the product in your main database.

To use this command enter :

php amazonimport.php

on the command-line.