We are using YQL to get the Profile Information in a Yahoo! App using YAP, however, we are facing an error while executing the YQL Query. We are using OpenSocial Gadget AJAX Functionality for making the call.
Following is the error message we are getting:
{"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 are using 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);
Kindly have a look and let us know if we are allowed to use the standard gadget method for AJAX Call regarding YQL or we need to follow a different procedure for YQL Integration.
We are of the thought that OAuth is to be integrated with our App somehow to achieve this functionality but we aren't sure about it yet. Can we have some pointers please as how YQL can be used in Yahoo! Apps?