How to use JSON key data to request a access token in php?

I am trying to use the google analytics embed library with the PHP API https://github.com/googleapis/google-api-php-client. There’s an example of it on the library page itself https://ga-dev-tools.appspot.com/embed-api/server-side-authorization/, but the example is for python, I looked for similar functions in the PHP library and not found it. In short, I need to have the access token using…

Can run online https://www.w3schools.com/js/tryit.asp?filename=tryjson_jsonp_php but cannot run on my computer

The example at : https://www.w3schools.com/js/tryit.asp?filename=tryjson_jsonp_php But when I copy it to my computer, It did not work The error is: Uncaught SyntaxError: Unexpected token < I vitsit this site: https://idiallo.com/javascript/uncaught-syntaxerror-unexpected-token#n. They advice to use ajax but I still want to use create “script” tag (document.createElement(“script”))because JSONP allow to use First file: json_demo_db.php, second file:Call_JSON.php https://drive.google.com/file/d/1O1IeNWi45VchP2LxZ8RLlXCdKbO9DaGe/view?usp=sharing…