<?php
$url = 'https://script.google.com/macros/s/AKfycbwmQQZAc8dssf3DKD6cKIMxsRGaAmhDpjlXgGdZeNRx1Vc1RWMo5PSdxagZlHBPl2c/exec' ; // path to your JSON file
$data = file_get_contents($url); // put the contents of the file into a variable
$characters = json_decode($data); // decode the JSON feed
var_dump ($characters);
?>
$url = 'https://script.google.com/macros/s/AKfycbwmQQZAc8dssf3DKD6cKIMxsRGaAmhDpjlXgGdZeNRx1Vc1RWMo5PSdxagZlHBPl2c/exec' ;
// Initiate curl
$ch = curl_init();
// Will return the response, if false it print the response
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// Set the url
curl_setopt($ch, CURLOPT_URL,$url);
// Execute
$result=curl_exec($ch);
// Closing
curl_close($ch);
// Will dump a beauty json :3
var_dump(json_decode($result, true));