Hi,
I have been breaking my head over this for the last couple of days.
I followed Zach's tutorial to use OAuth to authenticate the user. And I get a YahooUser from session.getSessionedUser(). Now, I do not know how to proceed. How do I make an API call to actually post to my meme accounrt?
CODE
var oac:OAuthConnection = OAuthConnection.fromConsumerAndToken((user.connections as ConnectionsRequest).consumer, (user.connections as ConnectionsRequest).token);
oac.realm = "yahooapis.com";
var cbo:Object = new Object();
cbo.success = handleQuerySuccess;
cbo.failure = handleQueryFailure;
oac.signRequest("POST", memeurl, cbo);
oac.asyncRequestSigned("POST", memeurl, cbo);
This doesn't work. It gives the following error -
QUOTE
<?xml version='1.0' encoding='UTF-8'?>
<yahoo:error xmlns:yahoo='http://yahooapis.com/v1/base.rng'
xml:lang='en-US'>
<yahoo:description>application/x-www-form-urlencoded not supported with OAuth</yahoo:description>
</yahoo:error>
<!-- yqlengine3.pipes.sp1.yahoo.com uncompressed/chunked Thu Nov 19 04:26:10 PST 2009 -->
Can somebody help me with this?