get user venue history

Get the venue history for a user.

$venues_url=\'https:api.foursquare.comv2usersselfvenuehistory?oauth_token=\' . $access_token . \'&v=\' . $date;
$response = file_get_contents($venues_url);
$venues = json_decode($response, true); 
$venues_response=$venues[\'response\'][\'venues\'];
$total_user_venues = $venues_response[\'count\'];
$venues_array = $venues_response[\'items\'];
	
for ($i=0; $i10){
		$shortname=substr($name, 0, 10) . \'...\';
	} else {
		$shortname = $name;
	}
	$location = $venue_array[\'location\'];
	$address = $location[\'address\'];
	$lat = $location[\'lat\'];
	$lng = $location[\'lng\'];
	$postalCode = $location[\'postalCode\'];
	$city = $location[\'city\'];
	$state = $location[\'state\'];
	
	$categories = $venue_array[\'categories\'];
	$categories_classes = \'\';
	for ($c=0;$c