Using custom headers for product feed

Hi
I am a complete numbty when it comes to PHP and cant get my head around how to access a product feed I need. I would just like to download the xml document
I have been given a this as an example and I have a
a key but it means nothing to me.
This is a short example script whih uses custom headers.

$APIKEY = ‘YOUR-API-KEY’;

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, ‘http://feeds.oliverstravels.com/v1/dwellings.json’);
// This is the important step
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'X-Affiliate-Authentication: ’ . $APIKEY));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$result = curl_exec($ch);
curl_close($ch);

var_dump($result);

Also it says

Access key
Each supplier is given a key which is used in accessing the API via an HTTP header:

X-Affiliate-Authentication: [unique key goes here]

(Not that this was changed from being a segment of the URL in a previous version.)

Base URL
The base URL is:
http://feeds.oliverstravels.com/v1/. “v1” refers to the version. Changes to the feed will be additive only. No destructive changes will be made to the feed until v2. If and when V2 is released, v1 will have a period or around 6 months before it’s retired.

Is there a simple way I can access the feed ? Thanks if anyone can help

Sponsor our Newsletter | Privacy Policy | Terms of Service