Download the latest data generated by the Fredhopper Managed Services.
URL
https://my.<region>.fredhopperservices.com/{sin}/data/output/latest/{filename}
Formats
Service dependent, usually "application/zip".
HTTP Method(s)
GET
Requires Authentication
Yes
Parameters
| Parameter | Required | Description |
|---|---|---|
| {sin} | Yes | Name of the service instance, for example fas:live1 or fas:test1. |
| {filename} | Yes | Name of a file. This is service-specific |
Response
HTTP "307 Temporary Redirect" response, with a 'Location' header pointing to a URL as specified in Download specific output.
Usage example
The following uses curl to download the latest recommendations from the 'recos:live1' service instance in the 'us1' region.
The command shows the headers returned by the server (-D - parameters) for illustration purposes as well.
Request:
$ curl -s -D - -L -u user:password https://my.us1.fredhopperservices.com/recos:live1/data/output/latest/recommendations.zip -o recommendations.zip HTTP/1.1 307 Temporary Redirect Date: Mon, 07 Feb 2011 15:20:24 GMT Server: Apache-Coyote/1.1 Location: https://my.us1.fredhopperservices.com/recos:live1/data/output/2011-02-07_03-00-36/recommendations.zip Content-Length: 0 Via: 1.1 my.us1.fredhopperservices.com Vary: Accept-Encoding Connection: close Content-Type: application/zip HTTP/1.1 200 OK Date: Mon, 07 Feb 2011 15:20:25 GMT Server: Apache-Coyote/1.1 Content-Type: application/octet-stream Via: 1.1 my.us1.fredhopperservices.com Vary: Accept-Encoding Connection: close Transfer-Encoding: chunked
| Note that curl by default doesn't follow redirects, and the -L option is required.
Many HTTP REST client libraries similarly follow redirects only if explicitly configured to do. |
Comments
0 comments
Article is closed for comments.