Does anyone know if you can get the javascript API key on Google WITHOUT the current URL?

I am developing a webapp / website on my local machine and will not know the URL that I use for it, but I would like to use the javascript APIs hosted by Google. Does anyone know how I will do this?

+3
source share
3 answers

You can get jQuery from the Google CDN through http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js . For any other information in this regard, you can refer to http://code.google.com/apis/ajaxlibs/documentation/#AjaxLibraries . And just look at the library Paths. You do not need any API key for this.

+3
source

You can even get the API key for the local machine. Say you use http: // localhost or http: // your-machine-name you can get the API key for this URL. I did this to test my JavaScript on my local XAMPP dev system.

But opening a file through a file: // may fail in this case.

. API- AJAX, jQuery Prototype, google.load(), , , : http://code.google.com/apis/ajaxlibs/documentation/index.html#jquery

+2

You do not need a key to use the AJAX Javascript Libraries API. Only some libraries require a key to be downloaded.

You can use their JSAPI to load third-party libraries like jQuery, dojo, prototype, etc.

Could you please indicate which libraries you use?

+1
source

Source: https://habr.com/ru/post/1748537/


All Articles