0

Using YQL (and other APIS) with Open Apps w/o the PHP SDK

HI!

So Im a RoR developer and am working on an open application. I want to do more interesting things on the canvas page than YML, and if the user redirects to my site (www.lottay.com) I would like to use the Yahoo Apis. So my question is, how do I make API calls for private data with Open Apps? I couldnt find any documentation out there on this (there seems to be a link to screencasts but they aren't relevant, and focus on the PHP SDK). If there are any plain html docs out there that would be great! I'm HOPING that I dont need to send my user through the OAuth process when they've already approved the open app. That would make for a pretty bad experience. Thanks in advance!

Adam Olsen
Co-Founder/CTO
Lottay, Inc.

by
0 Replies
  • Hi Adam,

    I'm not a RoR programmer but I'll try to provide you with some links to get you started to capture the private data that you are trying to work with. We have several SDKs available for this project, all available on the Yahoo! github account (http://github.com/yahoo) under yos-social-lang - unfortunately Ruby is not one of those.

    Here's what you'll need to get started. First, to capture private data the SDKs make OAuth signed requests to several URI's, which return the data. The SDKs in the Yahoo! account should display that process if you're familiar with the languages provided. I took a look and there is a RubyGem available for OAuth: http://oauth.rubyforge.org/

    Here's some information on how the Yahoo! OAuth authentication model works: http://developer.yahoo.com/oauth/ .

    Next, when you're making OAuth signed requests, you will need the different URIs to capture that data. These are all located here: http://developer.yahoo.com/social/rest_api_guide/ . These consist of:
    - Contacts API which links to the address book
    - Social Directory API which links to the profile & user connections
    - Updates API which has the links for the user's update stream
    - Status API which is the links to the user's status message stream

    You shouldn't need to go through the OAuth sign-in flow when on an Open application, but will need to when trying to access the user's private data on your site.

    Please let me know if you have any other questions - I know there is a lot to digest here.

    - Jon

    QUOTE (Adam Olsen @ Aug 11 2009, 09:12 AM) <{POST_SNAPBACK}>
    HI!

    So Im a RoR developer and am working on an open application. I want to do more interesting things on the canvas page than YML, and if the user redirects to my site (www.lottay.com) I would like to use the Yahoo Apis. So my question is, how do I make API calls for private data with Open Apps? I couldnt find any documentation out there on this (there seems to be a link to screencasts but they aren't relevant, and focus on the PHP SDK). If there are any plain html docs out there that would be great! I'm HOPING that I dont need to send my user through the OAuth process when they've already approved the open app. That would make for a pretty bad experience. Thanks in advance!

    Adam Olsen
    Co-Founder/CTO
    Lottay, Inc.
    0
  • Concerning that RubyGem link I provided - this one should actually be the OAuth plugin for Rails: http://code.google.com/p/oauth-plugin/ and should be of more value to you.

    - Jon
    0

Recent Posts

in YAP