Automating Feeds with the TurnTo API for Emplifi Ratings & Reviews
You can use the TurnTo API for Emplifi Ratings & Reviews to transfer batch feeds, catalog feeds, or email opt-out lists.
Feeds are communicated via secure HTTPS. When your site is set up with us, you are issued a siteKey and an authKey.
siteKey is the public identifier for your site. It is used on your web page to display the Emplifi widget. It is also used anywhere that we need to identify that the request is from your site.
authKey is a private key that you will use for communicating with the Emplifi API for transferring feeds.
The siteKey and the authKey are both required whenever an API call is made to transfer a feed.
Transfers to Emplifi Ratings & Reviews via the API return the word "SUCCESS" if the transfer is successful.
Here are examples of how to send an opt-out list file or a feed through the API. Your system can create a file with the opt-out list or feed on your side and then transfer it to Emplifi Ratings & Reviews with any HTTP post transfer method. These scripts assume access to a file you created, named for this example, "email_optout.txt", "turnto_feed_tab.txt" or "cancelled_orders.txt"
Feeds uploaded through the TurnTo API have a 250 MB file size limit.
Available URLs and parameters
Required arguments:
siteKey
authKey
API URLs:
/emailFeed/postfile - used for email opt-out feeds
params:
file (filename of file containing the email opt-out list)
/feedUpload/postfile - used for transaction, catalog, cancelled order, and yahoo store feeds
params:
file (the filename of the file containing the feed)
feedStyle (feed style of file)
tab-style.1 (TurnTo catalog)
tab-style.commerce (Commerce Product Catalog)
cancelled-order.txt
yahoo-style.1
yahoo-objinfo.xml
google-product.xml
bv-product.xml (BazaarVoice)
Examples of transferring files via CURL
The following examples demonstrate the commands to transfer files via CURL for the specified use case.
Email opt-out list
This example shows how to send an email opt-out list via CURL to Emplifi Ratings & Reviews.