@szlifier:
sorry mate im new on codding and im getting this error >> Parse error: syntax error, unexpected ':' in /home/u155508610/public_html/api/games/all_platforms.phpon line 19
here is code
$opts = array(
'http'=>array(
'method'=>"GET",
'header'=>"User-Agent: lashaparesha api script\r\n"
));
$context = stream_context_create($opts);
$url = https://giantbomb.com/api/platforms/?api_key='.$giantbomb_key.'&sort=release_date:desc&field_list=id,image,name,date_added,deck,platforms&limit=10&offset='.$offset.'0&format=json
$file = file_get_contents($url, false, $context);
$vresponse = json_decode($vdata);
if ($vresponse->results==NULL){
echo '';
}else{
foreach ($vresponse->results as $vresult)
Log in to comment