Combine yql auth.basic and ymail.messages to get yahoo emails? - yql

I have this:
select * from auth.basic
where url="mail.yahoo.com"
and username="username"
and password="password"
and this:
select * from ymail.messages where numMid='3'
Can I somehow combine them? I think you can imagine why I want this?

The basic auth wont work with this table. The ymail.messages table supports OAuth so you can use 3 legged oauth described at http://developer.yahoo.com/oauth/ and then use the oauth Authorization header to get the mail data from these tables.
Yahoo does support a couple of different languages including java and php. Let us know if you need a hand at that.

Related

Google Maps autocomplete Functionality from Apple Maps for Objective C?

I need to implement autocomplete Functionality for a City-Name Search in Objective C.
Basically at the Moment I would use the Google Maps autocomplete Functionality from here: https://developers.google.com/places/documentation/autocomplete
But I don't like displaying the powered by google - logo.
That's the reason why I'm asking here, is there a way to implement autocomplete Functionality using Apple Maps API or similar ?
Thanks for any advice
Check this out - Yahoo YQL console.
There you can put queries like this - it gives you all places starting with San:
select * from geo.places where text="San%"
The resulting JSON / XML can act as data source to what you are trying to display for autocomplete results.
As I can see they allow up to some number of free queries for non-commercial use, and beyond that they charge. You may check it out here and here.
If you dont want to implement it yourself, you can use this service called 'Autocomplete as a Service' which is specifically written for these purposes. You can access it here - www.aaas.io. It does support large datasets and you can apply filters as well. You just add your data and use the API URL in your autocomplete data source.
Disclaimer: I am founder of it. I will be happy to provide this service to you.

Google Private Spreadsheet Javascript Oauth

I have been trying to fully understand the Google APIs so I can grab data from a Google spreadsheet that is private using Javascript.
I am using jQuery and D3.js to create a chart and I want to seamlessly pull the data without the user being redirected to an authorization page. I know I need to use OAuth, but I can't find any examples of how to do this seamlessly through an AJAX call.
https://developers.google.com/google-apps/spreadsheets/#authorizing_requests
This doesn't mention anything that makes it seem like I can do it without an OAuth dialog to the user.
To get a private spreadsheet page, you're going to have to authorize. See Google Spreadsheets API with OAuth 2.0 for Javascript for a complete working OAuth call for a Google Spreadsheet. I used this to create a working database using Google Spreadsheets.
Another way that might work: Fusion Tables. You will have to have a public sheet, but you can make it unlisted meaning it is only available through a link (which you only use in your javascript). It might want a location (as it was designed for spatial data), but you might be able to get around it or just use a dummy value.

Why `search.web` YQL table doesn't work anymore?

When I'm using search.web YQL table, I always get the error:
No definition found for Table search.web
in my YQL statements. Even when using SELECT url FROM search.web(0,10) WHERE query="stackoverflow" for example.
So I am assuming Yahoo discontinued search.web or BOSS? What are the alternatives? Is there still a similar way to crawl the web?
We can read in YQL Blog:
We’ve removed all search tables that relied on the BOSS v1 API (search.web, search.image, and search.news) as the aforementioned BOSS v1 no longer exists as of today (http://www.ysearchblog.com/2011/06/30/you-asked-for-this-boss-v2-updates/).
For those of you relying on those tables please consider using the community BOSS v2 table (https://github.com/yql/yql-tables/blob/master/boss/boss.search.xml).
Thanks -YQL Team
Source: Search tables and BOSS v1 in YQL Blog.
As a result, you should move to another search service like Y! BOSS v2. As mentioned above there are already open data tables for that, and an example query would look like:
SELECT * FROM boss.search WHERE query="stackoverflow"
AND ck="your oauth consumer key"
AND secret="your oauth secret"
Another alternative is to use Bing search:
SELECT * FROM microsoft.bing.web WHERE query="stackoverflow"
BOSS v1 API has been depreciated (as in YQL Blog), so you should use BOSS v2 API which works exactly the same, but the table is called boss.search and it's available in Yahoo YQL Dev Console (just activate Show Community Tables or check at GitHub).
To use BOSS v2 API, you need to have your own Consumer Key and Consumer Secret which can be generated at Yahoo Dev Apps by creating a new app.
Sample usage:
select * from boss.search where q = "sam pullara" AND (ck = 'ConsumerKey') AND (secret = 'SECRET');

using APIs with oauth for single user

I'm trying to make use of various APIs including twitter, youtube, etc because we want to embed recent entries (tweets, videos) on our website.
However, since I'm just retrieving my own data, I'm wondering how I can do this simpler than the multi-step process required by OAuth.
Twitter provides me with my own access token I can use directly, so that kinda works, but I can't find any such token in the YouTube documentation.
So how am I supposed to make use of the api if I just want to get a simple list of stuff? how exaclty am I supposed to authenticate my own website to use my own account?
I think i might have things all wrong and if so please point me in the right direction. I tried using rss feeds but they don't give me as much control over what I retrieve as using the API directly...
any insight or suggestions are appreciated!
see my comment above. summary: it depends on the requirements of the individual api

How to get (scrape) the contents of a site that requires logging in through YQL?

Is it possible to get (scrape) data from a site that requires logging in using YQL? If yes, please tell the procedure.
You'll need the user to authorize your access via OAuth, as YQL's docs mention. In addition to the docs pointed to by links from the URL I just mentioned, you can learn all about OAuth here, then get libraries to help you use OAuth, depending of course on the programming language you want to use, from the links listed here.
Depending on how the remote site is set up, you could use a simple POST (there is an open data table for that1) or you could create your own small, custom data table and use <execute>2 to send whatever headers (including Cookie:) you need over one or more GET/POST requests.
htmlpost data table (example)
YQL Execute

Resources