问题
I am using Yahoo PHP5 SDK and use it to fetch user contacts from table social.contacts which is a private data. On the example, from Delicious, it only shown fetching public data from YQL. May I know what parameter should I use to fetch private data with the class YahooYQLQuery and Execute()? I have tried to follow the example but following error message appear:
YQL query failed with error: "Authentication Error. The table social.contacts requires a higher security level than is provided, you provided ANY but at least USER is expected".
回答1:
On the YQL code examples page, the best example to walk through is the YQL Social Application. (The Delicious/OAuth stuff is obsolete now.)
Also, when creating your Yahoo API key, make sure to select "This app requires access to private user data" and under Contacts, choose either Read or Read/Write, as appropriate for your app. This may be causing your YQL failure.
来源:https://stackoverflow.com/questions/9198879/how-to-fetch-private-data-with-yql-on-yahoo-php5-sdk-yos-social-php5