Can I upload a new sheet with the Zoho Sheet API?

Can I upload a new sheet with the Zoho Sheet API?

Hello,


I'm trying to implement the Zoho Sheet REST API from within Creator, uploading some CSV data.  I call a postUrl sending data using the following code:

   
  1. url = "http://sheet.zoho.com/api/private/xml/uploadbook?apikey=<myapikey>&ticket=<myticket>";
    data = map();
    data.put("content", mycsvdata);
    data.put("workbookName", "TESTUPLOAD");
    data.put("contentType", "csv");
    response = postUrl(url, data);




which executes without error.  When I look in Sheet, the new Sheet is there with the correct name, but there is no data in the sheet.

I'm suspicious that it might have something to do with the newline char (I've tried '\n' and '%0A' to no avail), but I'm not sure.

Help?