taiwan open hack 2009: yahoo! open strategy

33
Yahoo!Kimo Introduction to Yahoo! Open Str ategy Erik Eldridge Yahoo! Developer Network Slideshare.net/erikeldridge

Post on 12-Sep-2014

2.006 views

Category:

Technology


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Taiwan Open Hack 2009: Yahoo! Open Strategy

Yahoo!Kimo Introduction to Yahoo! Open Strategy

Erik EldridgeYahoo! Developer NetworkSlideshare.net/erikeldridge

Page 2: Taiwan Open Hack 2009: Yahoo! Open Strategy

Presentation structure

• Introduction to Yahoo! Open Strategy

• Social APIs

• Yahoo! Query Language

• Oauth

• OpenID

Page 3: Taiwan Open Hack 2009: Yahoo! Open Strategy
Page 4: Taiwan Open Hack 2009: Yahoo! Open Strategy

Y!OS Platforms

Page 5: Taiwan Open Hack 2009: Yahoo! Open Strategy

Presentation structure

• Introduction to Yahoo! Open Strategy

• Social APIs

• YQL

• Oauth

• OpenID

Page 6: Taiwan Open Hack 2009: Yahoo! Open Strategy

Social APIs: Social Directory API

• Read access to profile data for you and your friends

Page 7: Taiwan Open Hack 2009: Yahoo! Open Strategy

Screenshot showing profile data

Name, gender, address

Profile picture

Page 8: Taiwan Open Hack 2009: Yahoo! Open Strategy

Accessing Social Dir. APIhttp://social.yahooapis.com/v1/user/{guid}/profile

Yahoo! SDKs return JSON by default

Page 9: Taiwan Open Hack 2009: Yahoo! Open Strategy

Screenshot of code to fetch social dir. data

Use a Yahoo! SDK

for easy OAuth

Page 10: Taiwan Open Hack 2009: Yahoo! Open Strategy

Social APIs: Status API

• Read/write access to a 140 character personal statement

Page 11: Taiwan Open Hack 2009: Yahoo! Open Strategy

Screenshot showing status

Status message

Page 12: Taiwan Open Hack 2009: Yahoo! Open Strategy

Accessing Status API

social.yahooapis.com/v1/user/{guid}/profile/status

Page 13: Taiwan Open Hack 2009: Yahoo! Open Strategy

Social APIs: Updates API

• Read/write access to the Yahoo! event stream

• A very powerful service- Simple integration- Far reaching

Page 14: Taiwan Open Hack 2009: Yahoo! Open Strategy

Yahoo! Updates diagram

Page 15: Taiwan Open Hack 2009: Yahoo! Open Strategy

Screenshot showing updates

Updates

on p

rofil

e pag

e

Page 16: Taiwan Open Hack 2009: Yahoo! Open Strategy

Screenshot of updates in Yahoo! Mail

Updates

in Y

ahoo! M

ail

Page 17: Taiwan Open Hack 2009: Yahoo! Open Strategy

Accessing Updates APIhttp://social.yahooapis.com/v1/user/{guid}/updates

Page 18: Taiwan Open Hack 2009: Yahoo! Open Strategy

Contacts API

• Read/write access to your address book

Page 19: Taiwan Open Hack 2009: Yahoo! Open Strategy

Screenshot showing contacts

Contact

s in

Yah

oo! Mai

l

Page 20: Taiwan Open Hack 2009: Yahoo! Open Strategy

Accessing Contacts APIhttp://social.yahooapis.com/v1/user/{guid}/contacts

Page 21: Taiwan Open Hack 2009: Yahoo! Open Strategy

Yahoo! Social SDKs

• PHP, Python, Objective C

• Manage OAuth easily

• Open source on Github

Page 22: Taiwan Open Hack 2009: Yahoo! Open Strategy

Screenshot of Yahoo!’s Github page

Exper

imen

tal P

HP SDK

Standar

d PHP S

DK

Object

ive

C, pyt

hon SDKs

Page 23: Taiwan Open Hack 2009: Yahoo! Open Strategy

Presentation structure

• Introduction to Yahoo! Open Strategy

• Social APIs

• YQL

• Oauth

• OpenID

Page 24: Taiwan Open Hack 2009: Yahoo! Open Strategy

Yahoo! Query Language

• SQL-like syntax- SELECT {fields} from {table} WHERE {key} = {value}- SELECT * FROM flickr.photos.search WHERE text=" 臺北 101”- SELECT * FROM html where url=“http://www.wretch.cc/”- SELECT * FROM flickr.photos.search WHERE has_geo="true" and woe_id in

(SELECT woeid FROM geo.places WHERE text="taipei" LIMIT 1)

• Extensible access to APIs/data

• SELECT * FROM Internet

Page 25: Taiwan Open Hack 2009: Yahoo! Open Strategy

Screenshot of YQL console showing YQL query

YQL query to execute

Come to my YQL talk formore info!

Page 26: Taiwan Open Hack 2009: Yahoo! Open Strategy

Presentation structure

• Introduction to Yahoo! Open Strategy

• Social APIs

• YQL

• OAuth

• OpenID

Page 27: Taiwan Open Hack 2009: Yahoo! Open Strategy

OAuth

• Standardized, open protocol for authorizing 3rd-party access to data

Page 28: Taiwan Open Hack 2009: Yahoo! Open Strategy

Diagram of Oauth protocolOauth, part 2

External Service(3rd-party)

(2rd-party)

(1st-party)

Data

Authorization

Service

Page 29: Taiwan Open Hack 2009: Yahoo! Open Strategy

Presentation structure

• Introduction to Yahoo! Open Strategy

• Social APIs

• YQL

• OAuth

• OpenID

Page 30: Taiwan Open Hack 2009: Yahoo! Open Strategy

OpenID

• Standardized, open protocol for authenticating a user

Page 31: Taiwan Open Hack 2009: Yahoo! Open Strategy

Diagram of OpenID protocol

External Service(3rd-party)

(2rd-party)

(1st-party)

Iden

tity

Authentication

Service

Page 32: Taiwan Open Hack 2009: Yahoo! Open Strategy

Screenshot of Taiwan’s OpenID login page

The OpenID login page

Page 33: Taiwan Open Hack 2009: Yahoo! Open Strategy

Thank you!

• Resources:delicious.com/erikeldridge/taiwanhackday09+presentation+yos

• Find this talk on Slideshare:slideshare.net/erikeldridge

• Follow me on Twitter:twitter.com/erikeldridge