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

Erikeldridge Yos V9

  • View
    1.113

  • Download
    1

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Erikeldridge Yos V9

Yahoo!Kimo Introduction to Yahoo! Open Strategy

Erik EldridgeYahoo! Developer NetworkSlideshare.net/erikeldridge

Page 2: Erikeldridge Yos V9

Presentation structure

• Introduction to Yahoo! Open Strategy

• Social APIs

• Yahoo! Query Language

• Oauth

• OpenID

Page 3: Erikeldridge Yos V9
Page 4: Erikeldridge Yos V9

Y!OS Platforms

Page 5: Erikeldridge Yos V9

Presentation structure

• Introduction to Yahoo! Open Strategy

• Social APIs

• YQL

• Oauth

• OpenID

Page 6: Erikeldridge Yos V9

Social APIs: Social Directory API

• Read access to profile data for you and your friends

Page 7: Erikeldridge Yos V9

Screenshot showing profile data

Name, gender, address

Profile picture

Page 8: Erikeldridge Yos V9

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

Yahoo! SDKs return JSON by default

Page 9: Erikeldridge Yos V9

Screenshot of code to fetch social dir. data

Use a Yahoo! SDK

for easy OAuth

Page 10: Erikeldridge Yos V9

Social APIs: Status API

• Read/write access to a 140 character personal statement

Page 11: Erikeldridge Yos V9

Screenshot showing status

Status message

Page 12: Erikeldridge Yos V9

Accessing Status API

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

Page 13: Erikeldridge Yos V9

Social APIs: Updates API

• Read/write access to the Yahoo! event stream

• A very powerful service- Simple integration- Far reaching

Page 14: Erikeldridge Yos V9

Yahoo! Updates diagram

Page 15: Erikeldridge Yos V9

Screenshot showing updates

Updates

on p

rofil

e pag

e

Page 16: Erikeldridge Yos V9

Screenshot of updates in Yahoo! Mail

Updates

in Y

ahoo! M

ail

Page 17: Erikeldridge Yos V9

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

Page 18: Erikeldridge Yos V9

Contacts API

• Read/write access to your address book

Page 19: Erikeldridge Yos V9

Screenshot showing contacts

Contact

s in

Yah

oo! Mai

l

Page 20: Erikeldridge Yos V9

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

Page 21: Erikeldridge Yos V9

Yahoo! Social SDKs

• PHP, Python, Objective C

• Manage OAuth easily

• Open source on Github

Page 22: Erikeldridge Yos V9

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: Erikeldridge Yos V9

Presentation structure

• Introduction to Yahoo! Open Strategy

• Social APIs

• YQL

• Oauth

• OpenID

Page 24: Erikeldridge Yos V9

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: Erikeldridge Yos V9

Screenshot of YQL console showing YQL query

YQL query to execute

Come to my YQL talk formore info!

Page 26: Erikeldridge Yos V9

Presentation structure

• Introduction to Yahoo! Open Strategy

• Social APIs

• YQL

• OAuth

• OpenID

Page 27: Erikeldridge Yos V9

OAuth

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

Page 28: Erikeldridge Yos V9

Diagram of Oauth protocolOauth, part 2

External Service(3rd-party)

(2rd-party)

(1st-party)

Data

Authorization

Service

Page 29: Erikeldridge Yos V9

Presentation structure

• Introduction to Yahoo! Open Strategy

• Social APIs

• YQL

• OAuth

• OpenID

Page 30: Erikeldridge Yos V9

OpenID

• Standardized, open protocol for authenticating a user

Page 31: Erikeldridge Yos V9

Diagram of OpenID protocol

External Service(3rd-party)

(2rd-party)

(1st-party)

Iden

tity

Authentication

Service

Page 32: Erikeldridge Yos V9

Screenshot of Taiwan’s OpenID login page

The OpenID login page

Page 33: Erikeldridge Yos V9

Thank you!

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

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

• Follow me on Twitter:twitter.com/erikeldridge