netflix + rest · pdf fileauthentication • uses oauth • 3 levels of authentication...

15
Netflix + REST Dhaval Shreyas 1 Monday, October 13, 2008

Upload: nguyennguyet

Post on 28-Mar-2018

229 views

Category:

Documents


4 download

TRANSCRIPT

Netflix + RESTDhaval Shreyas

1Monday, October 13, 2008

Netflix API

• Introduced September 30th

• Data for over 100,000 movie and TV episode titles

• APIs• JavaScript API• REST API• Atom Feeds

2Monday, October 13, 2008

Features

• Search (movies, TV series, cast members, and directors)• Details (name, box art, director, cast, etc)• Users relationship with the title (in queue, saved, availabe, etc)• Manage and display queues for users• Auto-completion of previously typed terms• User’s ratings and reviews• Add and Play features

3Monday, October 13, 2008

The Idea

4Monday, October 13, 2008

Getting Started

5Monday, October 13, 2008

Getting Started

• Register http://developer.netflix.com

• Apply for an API Key(I got it in minutes)

• Code!

6Monday, October 13, 2008

Authentication

7Monday, October 13, 2008

Authentication

• Uses OAuth

• 3 Levels of Authentication

• Consumer Key Only

• Consumer Key + Signature (Encrypted secret key)

• Consumer Key + Signature + Access Token

8Monday, October 13, 2008

OAuth

9Monday, October 13, 2008

http://api.netflix.com/catalog/titles?oauth_version=1.0&oauth_nonce=eaf6903a3a29de06b21997780d6c348d&oauth_timestamp=1223507719&oauth_consumer_key=f94k8h4x9n27ff7hjwyw373s&term=fish&oauth_signatur

e_method=HMAC-SHA1&oauth_signature=YnoMyoDoNMLKajogaZjapRkmRF0%3D

10Monday, October 13, 2008

Resources

11Monday, October 13, 2008

Resources

ex: api.netflix.com/catalog/titles

12Monday, October 13, 2008

My Project

13Monday, October 13, 2008

Code

• Objective-C + Cocoa

• Jon Crosby’s OAuthConsumer framework (code for other platforms available at oauth.net/code)

14Monday, October 13, 2008

Demo

15Monday, October 13, 2008