Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fetch private data with YQL on Yahoo PHP5 Sdk yos-social-php5

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".

like image 493
davidlee Avatar asked Nov 04 '22 06:11

davidlee


1 Answers

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.

like image 107
BrianC Avatar answered Nov 07 '22 20:11

BrianC