Using REST APIs in a web application | Quick PHP Tutorial



In this video I show you how to create a simple web application which converts a location into latitude and longitude using the Google Maps API. Then it uses those coordinates to pull images taken in that location from the Instagram API.

Final PHP file used in this tutorial:
https://github.com/jelled/geogram/blob/master/index.php

Example Google Maps API call:
https://maps.googleapis.com/maps/api/geocode/json?address=disneyland,ca

Example Instagram API call using Disneyland’s coordinates:
https://api.instagram.com/v1/media/search?lat=33.8104856&lng=-117.9190001&client_id=

Chrome extension I’m using to make JSON responses readable in the browser:
https://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc

Outro music:
“Rollin at 5 – electronic” Kevin MacLeod (incompetech.com)
Licensed under Creative Commons: By Attribution 3.0
http://creativecommons.org/licenses/by/3.0/

source

Reply

Do NOT follow this link or you will be banned from the site!