Detailed instructions on how to use the EmpathyBroker index API Through Post using CURL instructions.
First [Empathy Index API]
To send a new feed to be indexed you must build a POST request to the following URL (replace constants with the values that the EmpathyBroker team has provided to you):
INDEX_SERVICE_URL/services/jobs/submit/INDEX_TOKEN/FEED_ID |
Samples using CURL
Text File (default)
curl -H "Content-Type:text/xml" -d @YOUR_FILE -X POST https://INDEX_SERVICE_URL/services/jobs/submit/INDEX_TOKEN/FEED_ID |
You must include the headers according your contents, for example use:
Binary File
curl -H "Content-Type:application/zip" --data-binary @YOUR_FILE -X POST https://INDEX_SERVICE_URL/services/jobs/submit/INDEX_TOKEN/FEED_ID |
If you use a binary file, like zip or gzip files your must specify a new parameter called --data-binary:
Please ask us for another options.