What's happening today:

  • Readings
  • Flickr Example
  • Giffy Example
  • JSON Data Challenge
  • Drive SDK Example
  • Facebook Graph API

Required Readings

  • MDN HTTP Overview
  • MDN Ajax Overview
  • MDN JSON
  • jQuery ajax(...) method
  • jQuery getJSON(...) method

Google Drive SDK (Web)

This SDK allows you to store files on your user's Google Drive account.

This is an OAuth API and you first must set up an account, projects and permissions in the Google Developer Console

Developer Console

Once you've created a project, go to 'APIs and Auth' and enable the 'Drive API' and 'Drive SDK'

Next, click 'Credentials' and create a new OAuth Client ID

Follow the prompt to configure the consent screen

Application Type: Web Application

Authorized Domains: http://localhost (for development)

Create Client ID

Follow the quickstart guide (starting at Step 2):

Quickstart

Testing and building skills...

OAuth 2.0 Playground

Code School Course

Developer Console

The Facebook Graph API works a lot like the Google Drive SDK.

First, create a new app -> Website

Follow the prompts and setup the test example.

BOOM

Testing and building skills...

Tools and Support

I HIGHLY recommend testing your requests in the Graph API Explorer