GridVids
Sign in with YouTube

Using REST APIs in a web application | Quick PHP Tutorial

Mark watched
Don't Miss
Hide
Open in popup Open on YouTube

WebConcepts 11 years ago

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/