mirror of
https://github.com/maierfelix/POGOserver.git
synced 2026-09-09 02:56:52 -05:00
Install Guide for Api Services And edit Configs
51
How-to-setup-API---API-services-through-Google-Console.md
Normal file
51
How-to-setup-API---API-services-through-Google-Console.md
Normal file
@@ -0,0 +1,51 @@
|
||||
### Setting up API services
|
||||
|
||||
First of all you should create A API Services through google.
|
||||
first go to [API Console](https://console.developers.google.com)
|
||||
|
||||
|
||||
And look into the Seccond colum and select google maps JavaScript
|
||||

|
||||
|
||||
than go to Dashboard Tab and prest on google maps JavaScript API Enable.
|
||||

|
||||
|
||||
Than go to credentials Tab and select Create credentials ----> API Key.
|
||||

|
||||
|
||||
|
||||
When the API Key hs been Created.
|
||||
Copy the Key and press the button close.
|
||||
|
||||

|
||||
|
||||
|
||||
alright after we have setup the API services we need to edit some configs.
|
||||
|
||||
Download or clone the https://github.com/maierfelix/POGOserver/tree/api
|
||||
when you have the files place them into youré Xamp/Htdocs.
|
||||
|
||||
### Edit the configs
|
||||
|
||||
first open up the POGOserver/cfg.js and scrol down when you see.
|
||||
|
||||
// Google maps api key
|
||||
GMAPS_KEY: "AIzaSyDF9rkP8lhcddBtvH9gVFzjnNo13WtmJIM", replace this API Ket with youré API Key.
|
||||
|
||||
than open up into API/js/init.js and search for
|
||||
|
||||
|
||||
loadScriptDefered("http://maps.google.com/maps/api/js?key=" + CFG.GMAPS.API_KEY);
|
||||
loadScriptDefered("js/gmaps.js");
|
||||
loadScriptDefered("js/ajax.js");
|
||||
loadScriptDefered("js/main.js");
|
||||
|
||||
you need to place youré Api KEY Behind /maps/api/js?key=.
|
||||
|
||||
example
|
||||
loadScriptDefered("http://maps.google.com/maps/api/js?key=Place here Youré Api Key" + CFG.GMAPS.API_KEY);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user