[2017-07-27 17:45:45]exception 'Error' with message '[Mongo] connect failed 127.0.0.1 : Failed to connect to: 127.0.0.1:27017: Previous connection attempts failed, server blacklisted' in /data_local/us/dff2_prod/inc/db_mongo.class.php:42 Stack trace: #0 /data_local/us/dff2_prod/inc/DataObj.class.php(72): db_mongo->__construct(0, false, false) #1 /data_local/us/dff2_prod/inc/DataObj/DataObj_aff.class.php(74): DataObj->__construct(Array) #2 /data_local/us/dff2_prod/inc/Data.class.php(14): DataObj_aff->__construct() #3 /data_local/us/dff1/functions/aff.func.php(80): Data::obj('aff') #4 /data_local/us/dff1/functions/aff.func.php(196): get_aff_info_all(1001) #5 /data_local/us/dff1/examples/xml.php(26): get_aff_token_ip(1001) #6 {main}[2017-07-27 17:45:45]exception 'Error' with message '[Mongo] connect failed 127.0.0.1 : Failed to connect to: 127.0.0.1:27017: Previous connection attempts failed, server blacklisted' in /data_local/us/dff2_prod/inc/db_mongo.class.php:42 Stack trace: #0 /data_local/us/dff2_prod/inc/DataObj.class.php(72): db_mongo->__construct(0, false, false) #1 /data_local/us/dff2_prod/inc/DataObj/DataObj_aff_site.class.php(75): DataObj->__construct(Array) #2 /data_local/us/dff2_prod/inc/Data.class.php(14): DataObj_aff_site->__construct() #3 /data_local/us/dff1/functions/aff.func.php(86): Data::obj('aff_site') #4 /data_local/us/dff1/functions/aff.func.php(196): get_aff_info_all(1001) #5 /data_local/us/dff1/examples/xml.php(26): get_aff_token_ip(1001) #6 {main} DataFeedFile.com Sample Website for Data Feed File Price Comparison Shopping Script Integration Examples

XML : Merchant Random Products (random products listing per merchant)

Wiki Documentation + list of parameters

This XML web service will return a XML formatted array of up to 100 random products for one merchant at a time.

This XML Random Merchant Products will return the following information: productsku, productid, shortdesc, prdtprice, catnum, clickurl, thumbnailurl, sellercount.



http://www.datafeedfile.com/xml/xml_merprdt_random.php?affid=...&dfftoken=...&mernum=...

This XML example demonstrate the XML-RPC data feed web services provided by DataFeedFile.com

Affiliate ID:    Merchant Number (mernum):         (try refreshing the XML result page repeatedly to see random effect)

Request Variables

In order for you to get XML data feed, there are some request variables that you need to submit to Datafeedfile.com XML Web Services. Here is list of variable that you need to specify when requesting a XML data feeds.
VariableRequiredDescription
affidYAffiliate ID, is a unique identifier number for each DFF affiliate account
dfftokenYYour unique DFF Token. Generate this unique DFF Token string of characters from your Affiliate Control Panel > Settings > DFF Token.
mernumYMerchant Number, is the merchant / store number used by DataFeedFile.com to select which merchant to return result for.
sortNControls the ordering of the array returned. Options are 'asc' rank ascending (default), 'desc' rank descending (reverse), 'random' any order.
limitNLimits the number of search keywords array elements returned. By default limit is set to 10 when nothing is specified. Maximum limit is 100.
compressNPut value 'gzip' to use gzip zlib compression algorithm. You must de-compress when receiving data before decoding the XML. Compression is optional but recommended. Example: &compress=gzip

Requirements

1. Please make sure your XML access DFF Token is ACTIVE. To activate and generate token you must login and go to Settings > DFF Token.

2. Set the Requesting IP address of the computer / server / client that will be used to make the query. Set IP at Settings > DFF Token.

3. Generate dfftoken variable. You must go to Settings > DFF Token to generate an XML access DFF Token token and use this in the dfftoken variable.












< Back to DataFeedFile.com