开发者

YQL in Yahoo! App [YAP]

开发者 https://www.devze.com 2023-01-03 18:54 出处:网络
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 t

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?


you're requesting private social data, so you'll need to sign this request using oauth. i think passing the 'signed' param is how you would do this in opensocial, but i don't have first-hand experience, so i can't say for sure.

you'll also need to use the private yql endpoint "http://query.yahooapis.com/v1/yql"

0

精彩评论

暂无评论...
验证码 换一张
取 消