Can you try using the http method PUT to create a new update?
Thanks Dustin, we are sending this from Flash so we can't do a true PUT. See
http://dynamicflash.com/2008/11/the-troubl...flash-and-rest/ for an exact description of the problem (oddly enough the post is written by a Senior Yahoo! Developer from London).
So we need Yahoo! to support X-HTTP-Method-Override and open up all the crossdomains to allow headers="*" (i.e.
http://social.yahooapis.com/crossdomain.xml locks headers down to Authorization only).
We also tried doing this via FQL but that didn't work either! I successfully ran this YQL on the test console and it created an update, but am getting a 400 Bad Request when I send the same query through the Flash SDK to the REST API.
CODEBOX
INSERT INTO social.updates (guid, title, description, link) VALUES (me, "Title of post", "Description of post", "http://yahoo.com")
So when using the Flash SDK to send the request I get a 400. Here's the code I'm calling and the URL it sends across the wire:
Code snippet that results in 400:
_session = YahooSession.sessionFromYAP(consumerKey, consumerSecret, flashvars.yap_appid, atk, ats, guid);
_user = _session.getSessionedUser();
_user.yql.query('INSERT INTO social.updates (guid, title, description, link) ' +
'VALUES (me, ' +
'"Title of post", ' +
'"Description of post", ' +
'"http://yahoo.com")');
Triggers this URL which yields a 400:
http://query.yahooapis.com/v1/yql?format=j...uth_version=1.0But I can however send this FQL through the Flash SDK fine using the same code as above:
select * from geo.places where text="san francisco, ca"
So I'm unsure what's bad about the social.updates query since it works in the FQL test console. Any ideas? Can anyone run that yql.query() from Flash successfully?