function cbrq5(obj)
{
if(obj.data)
{
document.getElementById('yap-notice5').innerHTML = "RUNQUERY 5"+"the count of items 2 is"+obj.data.query.count;
}
else
{
document.getElementById('yap-notice5').innerHTML = "RUNQUERY 5"+gadgets.json.stringify(obj);
}
}
function runquery5()
{
var postdata='select * from social.connections.updates(100) where guid=me and type="blog"';
var params = {};
postdata = gadgets.io.encodeValues(postdata);
params[gadgets.io.RequestParameters.AUTHORIZATION]=gadgets.io.AuthorizationType.
OAUTH;
params[gadgets.io.RequestParameters.CONTENT_TYPE]=gadgets.io.ContentType.JSON;
params[gadgets.io.RequestParameters.METHOD]=gadgets.io.MethodType.POST;
params[gadgets.io.RequestParameters.POST_DATA]= postdata;
var BASE_URI = 'http://query.yahooapis.com/v1/yql';
gadgets.io.makeRequest(BASE_URI, cbrq5,params);
}
I got this error first
Blogs 2
RUNQUERY 5{"text":"Please provide valid credentials. OAuth oauth_problem="OST_DECRYPTION_ERROR", realm="yahooapis.com"Please provide valid credentials. OAuth oauth_problem="OST_DECRYPTION_ERROR", realm="yahooapis.com"","rc":401,"
then running it again unchanged I got this error
Blogs 2
RUNQUERY 5{"text":"\n\n Please provide valid credentials. YahooOAuthSession oauth_problem=\"token_missing\", realm=\"yahooapis.com\"\n\n\n","rc":401,"
by
0 Replies