Tuesday, April 22, 2014

Getting user informations using IP Address

Getting user informations like Geo location, city, region, country etc are very easy. In this post we'll be utilizing ipinfo.io web API to get the user information from the IP Address.

We'll be using the function which we have build in our last post. Using that function we'll send a request to ipinfo.io API with the user IP Address. Then from there we'll receive a JSON string which we'll parse and get the informations.

If the IP Address is invalid then we'll get a message saying invalid IP Address.

No comments:

Post a Comment

Will be visible after moderation!