Your SlideShare is downloading. ×
0
Y! messenger API  - Yahoo! Bangalore OpenHackday
Y! messenger API  - Yahoo! Bangalore OpenHackday
Y! messenger API  - Yahoo! Bangalore OpenHackday
Y! messenger API  - Yahoo! Bangalore OpenHackday
Y! messenger API  - Yahoo! Bangalore OpenHackday
Y! messenger API  - Yahoo! Bangalore OpenHackday
Y! messenger API  - Yahoo! Bangalore OpenHackday
Y! messenger API  - Yahoo! Bangalore OpenHackday
Y! messenger API  - Yahoo! Bangalore OpenHackday
Y! messenger API  - Yahoo! Bangalore OpenHackday
Y! messenger API  - Yahoo! Bangalore OpenHackday
Y! messenger API  - Yahoo! Bangalore OpenHackday
Y! messenger API  - Yahoo! Bangalore OpenHackday
Y! messenger API  - Yahoo! Bangalore OpenHackday
Y! messenger API  - Yahoo! Bangalore OpenHackday
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Y! messenger API - Yahoo! Bangalore OpenHackday

2,217

Published on

Yahoo! bangalore open hackday talk about "Yahoo! messenger APIs" :-)

Yahoo! bangalore open hackday talk about "Yahoo! messenger APIs" :-)

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,217
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • { "presenceState" : 2, "presenceMessage" : "I am in a meeting" }
  • POST - /v1/session?fieldsBuddyList=%2Bgroups
  • POST - /v1/session?fieldsBuddyList=%2Bgroups
  • POST - /v1/session?fieldsBuddyList=%2Bgroups
  • two strategies for obtaining notifications
  • two strategies for obtaining notifications
  • Transcript

    • 1.
    • 2. Yahoo! Messenger APIs
      The world of smilies…
      @jayasurian123
      Yahoo! Mail engineer
    • 3. Prerequisites
      HTML
      Request/Response Headers
      HTTP Content
      RESTful
      APIs use HTTP GET, POST, PUT, DELETE
      Override using uri parameter _method=put/delete
      JSON
      No XML support
      Content-Type: application/json;charset=utf-8
    • 4. Normal Messenger Flow
      Authenticate with Yahoo! IM SDK servers
      Create a new session
      Obtain & update presence information
      Obtain current contact list and details
      Start sending/receiving messages
    • 5. Authentication
      Standard OAuth
      Direct OAuth
    • 6. Session Management
      Login
      Same as messenger log in
      Logoff
      Log out from the messenger
      KeepAlive
      Client heartbeat
    • 7. Presence & Message management
      Presence Management
      To update messenger status
      Available, busy, idle, invisible
      Custom message
      Message Management
      To send message
      No interop as of now
      msn/hotmail/etc…
      Contact Management
      Fetch details of a contact
      Fetch the entire contact list
    • 8. Manage urself…
      Group management
      Ignore management
      Buddylist Authorization management
      Abuse management
      Stealth Management
      File transfer management
    • 9. Notification Management
      Notification
      An event targeted to a logged in session
      Common Notification types
      message – Incoming message
      buddyInfo – contact logged in info
      buddyStatus– contact updating presence info
      logoff – contact went offline
      buddyAuthorize– someone trying to add you
    • 10. Notification Management
      Notification Sequence Number
      All notifications have a sequence number
      Unique to the session
      It’s an integer
      Design for skipping sequence number !!
    • 11. Notification Management
      2 strategies for obtaining notifications
      Periodic Polling
      Comet style push
    • 12. Notification Management
      Periodic polling
      GET /v1/notifications
      Clients are expected to poll no more than once every 5 seconds
      Provide the start sequence number and optional count
      No persistent connection support
    • 13. Notification Management
      Comet style push (Long polling)
      GET /v1/pushchannel/{primaryLoginId}
      Each session is restricted to having no more than one open long-lived HTTP
      Provide the start sequence number and optional timeout
      Both HTTP/1.1 and HTTP/1.0 support
    • 14. Show me the code…
    • 15. Useful links
      http://developer.yahoo.com/messenger/guide/
      http://developer.yahoo.com/oauth/

    ×