How to get Country Area Code like India(+91) in php by API -


how country area code india(+91) in php api

could not find

$detailsid=json_decode(file_get_contents('http://ipinfo.io/'.$_server['remote_addr'])); 

i got fron this.

 $idd=json_decode(file_get_contents('https://restcountries.eu/rest/v1/alpha?codes=in')); 

you can try

$detailsid=json_decode(file_get_contents('http://ipinfo.io/'.$_server['remote_addr'])); 

to data of country, , can call

https://restcountries.eu/rest/v1/name/india 

you can currency , data needed.


Comments

Popular posts from this blog

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -

Qt4: how to send QString inside a struct via QSharedMemory -