hey all. i'm working on building a blackberry app for fantasy football for next year since yahoo decided to make it just a shortcut to the web this year =(. i'm using java. i've used the Y! console to query the database but when i try to copy and paste the url i get an oauth error.
i have an oauth code but have no idea how to pass it in this url so i get access to the xml. i've checked the documentation but can't figure it out. can anyone point me in the right direction. thanks in advance.
hey everyone one. i just wanted to be a little more clear on what i'm looking for. i'm new to java development and yahoo services. here's what i'm trying to do. i'm creating a blackberry mobile app for fantasy football. i can work with the xml given by yql but when i try and put the above url i get an oauth error. so here's what i need
1 - how do i pass my oauth with that url to get the xml.
once i get the xml i can work it from there in java. i just don't know how to go about getting (outside of the yahoo console).
Word. So, I'm not sure how familiar you are with OAuth, but I'll try to cover all the details.
When you hit the YQL console (eg, http://developer.yahoo.com/yql/console/?q=...b.l.627060'), it automatically converts your Yahoo! login credentials (from your cookie) into OAuth credentials before it makes the request to the fantasy sports API servers. All of our authentication on our API servers is done by OAuth, and the YQL console just helps smooth that over for you.
Once you start trying to actually query the services outside of the YQL console, though, you need to actually formulate the OAuth credentials yourself. This is a non-trivial exercise, and you should definitely poke around this forum to try to find other examples that users have provided. At a high level, though, you should read the following guide to figure out a bit more about OAuth:
We use 3-legged OAuth, which means that you need to first bounce the user to our OAuth servers to get the user to grant permission for your application, before you can actually start asking for any data on their behalf. That also means you'll need to register an application, by the way (also described in the Welcome post).
Once you're able to get the right OAuth access tokens for your users, you can then pass those over to the YQL URL you're trying to query and things should work better.
Hopefully that covers things and gets you started in the right direction.