Menu
Feed
Using the feed API you will be able to update configurations you used to update using the import tab in the Feedvisor dashboard.
Requests
Submit feed request
Method |
POST | ||||||||||||||||||||||||||||||
URL |
<Post-authentication Base URL>/{accountId}/feed | ||||||||||||||||||||||||||||||
Parameters |
|
||||||||||||||||||||||||||||||
Headers |
Authorization: Bearer <access token> (Same as described above) | ||||||||||||||||||||||||||||||
Example response |
{ "requestId":<requestId> } |
Feed request status
Method |
GET | ||||||||
URL |
<Post-authentication Base URL>/{accountId}/feed/{requestId} | ||||||||
Parameters |
|
||||||||
Headers |
Authorization: Bearer <access token> (Same as described above) | ||||||||
Example response |
{ "requestId":"123", "status":<Status>, "errorMessage":<errorMessage>, ”accountId”:123, ”lastUpdateDate”: <java timestamp> }
Statuss: Awaiting, //did not run yet Queued, //did not run yet InProgress, //running Finished,// finished successfully Canceled, //canceled by monitoring service if velocity is too low Failed //request finished with failure errorMessage: if the process fails, you will have an error message with info why it failed |
Feed request result file download
Method |
GET | ||||||||||||
URL |
<Post-authentication Base URL>/{accountId}/feed/{requestId}/result_file | ||||||||||||
Parameters |
|
||||||||||||
Headers |
Authorization: Bearer <access token> (Same as described above) | ||||||||||||
Response |
The response is the file itself
Char encoding: UTF-8 Headers: Content-Disposition: attachment;filename=<filename> Content-Type: text/csv;charset=UTF-8 Body: byte[] of file |
Feed history
Method |
GET | ||||||||
URL |
<Post-authentication Base URL>/{accountId}/feed/ | ||||||||
Parameters |
|
||||||||
Headers |
Authorization: Bearer <access token> (Same as described above) | ||||||||
Example response |
[ {"requestId":"123","status":<status>,"errorMessage":"",”accountId”:123,”lastUpdateDate”: <java timestamp>}, {"requestId":"124","status":<status>,"errorMessage":"",”accountId”:123,”lastUpdateDate”: <java timestamp>} ] |
Comments
0 comments
Please sign in to leave a comment.