We use YQL to get profile information on Yahoo! However, an application using YAP encounters an error while executing a YQL query. To make the call, we use the OpenSocial Gadget AJAX function.
The following is the error message:
{"error":{"lang":"en-US","description":"Authentication Error. The table social.profile requires a higher security level than is provided, you provided ANY but at least APP is expected"}}
The code we use is as follows:
var params = {};
params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.TEXT;
params[gadgets.io.RequestParameters.METHOD] = gadgets.io.MethodType.GET;
gadgets.io.makeRequest('http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20social.profile%20where%20guid%3Dme&format=json', userProfileCallback, params);
Please take a look and let us know if we are allowed to use the standard gadget method for AJAX Call in relation to YQL or if we need to follow another YQL integration procedure.
We believe that OAuth needs to be integrated with our application in order to achieve this functionality, but we are not sure about it yet. Can we offer some pointers on how YQL can be used in Yahoo! Applications?