<?php
$base_url = '/locations/island-prime/menus/?client=YOUR_CLIENT_ID';
$url = hash_hmac('sha1',$base_url, 'YOUR_CLIENT_SECRET', true);
$str = urlencode(base64_encode($url));
$fnl_url = 'http://publishing-api.singleplatform.com'.$base_url.'&signature='.$str;
echo $fnl_url;
$ch = curl_init($fnl_url);
$response = curl_exec( $ch );
$result = json_decode($response);
echo $result;
?>