UWash Hack U - Y!OS

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Favorite

    UWash Hack U - Y!OS - Presentation Transcript

    1. Yahoo! Open Strategy (Y!OS) Jonathan LeBlanc – Sr. Software Engineer / Tech Evangelist Yahoo! Developer Network – Partner Integrations February 19, 2009
    2. Yahoo! Open Strategy (Y!OS)
      • Underlying social platform
      • Unified profile system
      • Updates across Yahoo!
      • Rich connections
      Y!OS Establishes a Social Dimension
    3. Y!OS: Social APIs
    4. Y!OS: Social APIs
    5. Y!OS: Social APIs
      • Open application system
      • Tie in core APIs
      • Allow rich services on and off Yahoo!
      Y!OS Enables Open Application Development
      • Yahoo! Application Platform
      • Open applications (run on YAP)
      • OAuth applications (run on your site)
      • http://developer.yahoo.com/yap
      Y!OS Applications
    6. Y!OS: Open Applications
      • Richly social infrastructure/ platform changes
      • Developer opportunities across Yahoo! and the web
      • Reaching 500M users using Yahoo! technologies
      Y!OS Rewires Yahoo!
      • Y!OS Components How does it work?
    7. Y!OS Components – Open Authentication (OAuth)
      • 2-legged & 3-legged OAuth
      • Consumer / Shared Secret keys
      • Similar to proprietary BBAuth, but open standard
      • http://developer.yahoo.com/oauth/
      • Allows secured access to private data
      • Can use ‘me’ and ‘viewer’ keywords
      • Will begin integrating into OSML
      • http://developer.yahoo.com/yap/yml
      Y!OS Components – Yahoo Markup Language (YML)
      • Social Directory (read)
      • Contacts (read)
      • User Status (read / write)
      • Updates (read / write)
      • http://developer.yahoo.com/social
      Y!OS Components – Social APIs
      • HTML / CSS / JavaScript securer
      • Enforces standards
      • Includes JSLint (http://www.jslint.com)
      • One of the first to integrate Caja
      • http://code.google.com/p/google-caja
      • http://developer.yahoo.com/yap/guide/caja-support.html
      Y!OS Components – Caja
    8. PHP SDK Currently Available Open and OAuth Applications ActionScript 3 SDK Currently Available Open Applications Java SDK in Development Open and OAuth Applications Y!OS Components – SDKs
      • SQL-like syntax
      • Private / Public Data
      • Use of many YDN APIs
      • Captures external data feeds
      • Allows custom tables with the “Open Data Tables” feature
      • http://developer.yahoo.com/yql
      Y!OS Components – Yahoo! Query Language (YQL)
      • YAP Applications How do I get started?
      • Runs on YAP
      • Supports 2- & 3- legged OAuth
      • Supports OpenSocial 0.8 JavaScript APIs
      Open Applications
    9. Open Application - Views Small View Large View
    10. Open Application – Small View
    11. Open Application – Large View
      • http://developer.yahoo.com/dashboard
      • http://developer.yahoo.com/dashboard
    12.  
    13.  
    14.  
      • Runs off platform
      • Supports 2- & 3-legged OAuth
      • Does not contain views
      • Requires users to authenticate session
      OAuth Applications
      • http://developer.yahoo.com/dashboard
      • http://developer.yahoo.com/dashboard
    15.  
    16.  
    17.  
    18.  
    19.  
      • YAP Code Dive What can you do with YAP?
      • YAP Code Dive PHP SDK
    20. Used For: - Public user data and open APIs PHP SDK – 2-Legged OAuth Initialization
      • Used For:
      • Private data access
      PHP SDK – 3-Legged OAuth Initialization
    21. 3-Legged OAuth getSessionedUser (session) getOwner (session) getUser (session) query (session) getPresence (user) setPresence (user) listUpdates (user) listConnectionUpdates (user) insertUpdate (user) deleteUpdate (user) loadProfile (user) getConnections (user) getContacts (user) setSmallView (user) 2-Legged OAuth setSmallView (application) query (application) PHP SDK – Available Methods
    22. PHP SDK – Create a User Update
    23. PHP SDK – Set the Status of a User
      • YAP Code Dive Yahoo! Markup Language (YML)
    24. YML Tags (Large View) yml:a yml:ad yml:audio yml:form yml:friend-selector yml:if-env yml:message yml:name yml:profile-pic yml:pronoun yml:share yml:swf yml:user-badge   YML Lite Tags (Small View) yml:a yml:audio yml:form yml:if-env yml:name yml:profile-pic yml:pronoun yml:user-badge YML – Available Tags
    25. YML:A Tab Sample - Controller
    26. YML:A Tab Sample – Tab Construction
    27. YML:A Tab Sample - Product
    28. YML:A Small View Update Sample
    29. YML:A Small View Update Sample
      • YAP Code Dive Yahoo! Query Language (YQL)
    30. Projection - SELECT what FROM table - SELECT * FROM social.connections Local and Remote Filtering - SELECT what FROM table WHERE filter - SELECT * FROM social.profile WHERE guid = me Sub-selects - Joining Data - SELECT what FROM table WHERE fieldvalue IN (SELECT ...) - SELECT * FROM social.profile WHERE guid IN (SELECT guid FROM social.connections WHERE owner_guid=me) Local Paging Control - SELECT what FROM table WHERE filter LIMIT 10 OFFSET 50 - SELECT * FROM web.search WHERE query="madonna" LIMIT 3 OFFSET 10 Remove Table Size Control - SELECT what FROM table(0,500) WHERE condition - SELECT * FROM web.search(0,10) WHERE query="madonna" AND result.XXX = something YQL – Query Structure
    31. YQL Command: SHOW tables YQL – Available Tables
    32. YQL Command: DESC social.connections YQL – Table Contents
    33. YQL – Running a Query
    34. YQL – Output Types
      • YAP Code Dive Caja
    35. Caja – JavaScript Before Cajoling
    36. Caja – JavaScript After Cajoling
    37. Caja – Best Practices
      • Use OpenSocial JavaScript standards
      • Use W3C standards
      • Use YML wherever possible
      • Unit test all JavaScript
      • Read the documentation (http://developer.yahoo.com/yos)
      • Participate in the forums (http://developer.yahoo.net/forum/)
      • YAP Code Dive Common Questions
      • I have an existing OpenSocial application. How do I get started?
      • I have an existing Facebook application. How do I get started?
      • How do I authenticate OAuth using JavaScript?
      • Why PHP / AS3 for the first SDK?
      • How do users find my application?
      Common Questions – Q & A
      • Thank You Questions?

    + Jonathan LeBlancJonathan LeBlanc, 8 months ago

    custom

    945 views, 1 favs, 0 embeds more stats

    Y!OS overview and deep code dive

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 945
      • 945 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 1
    • Downloads 7
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories