When Cloud sync features are going to be available for Corona users?. It is one of the strong point of corona cloud, and it would be great to have an API to use them.
I have tried to call by CC_post the method createBox without success. I used the last version of cloud.lua file. Before calling createBox functions, I log with an user previously created. The file to upload to the server is in the root of the project. Here is the code which calls createBox method:
function cloudCore.createBox( user\_file ) local params = "auth\_token=" .. cloudCore.authToken params = params .. "&user\_file=" .. user\_file local path = "storage.json" local function networkListener( event ) if ( event.isError ) then if cloudCore.debugEnabled then print( cloudCore.debugTextPrefix .. "Network Error" ) print( cloudCore.debugTextPrefix .. "Error: " .. event.response ) end --[[if nil ~= cloudCore.\_leaderboardsListener then local event = { name="leaderboards", type="submitHighScore", error = event.response, response = nil } cloudCore.\_leaderboardsListener( event ) end]] else if cloudCore.debugEnabled then print( cloudCore.debugTextPrefix .. "Response Details: " .. event.response ) end end end \_postCC( path, params, networkListener ) end
Here is the answer of the Corona Server
2013-05-20 14:55:27.599 Corona Simulator[9416:707] Corona Cloud: -- POST Call --- 2013-05-20 14:55:27.599 Corona Simulator[9416:707] Corona Cloud: Post URL: https://api.coronalabs.com 2013-05-20 14:55:27.599 Corona Simulator[9416:707] Corona Cloud: Post Path: storage.json 2013-05-20 14:55:27.600 Corona Simulator[9416:707] Corona Cloud: Post Parameters: auth\_token=81a4c6fef9164b16ce6fd573ccfb4ef1bdf822eb&user\_file=prueba.txt 2013-05-20 14:55:27.600 Corona Simulator[9416:707] Corona Cloud: ---------------- 2013-05-20 14:55:27.600 Corona Simulator[9416:707] Corona Cloud: Post Request: https://api.coronalabs.com/storage.json 2013-05-20 14:55:27.784 Corona Simulator[9416:707] Corona Cloud: Response Details: \<!DOCTYPE html\> \<html\> \<head\> \<title\>We're sorry, but something went wrong (500)\</title\> \<style type="text/css"\> body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; } div.dialog { width: 25em; padding: 0 4em; margin: 4em auto 0 auto; border: 1px solid #ccc; border-right-color: #999; border-bottom-color: #999; } h1 { font-size: 100%; color: #f00; line-height: 1.5em; } \</style\> \</head\> \<body\> \<!-- This file lives in public/500.html --\> \<div class="dialog"\> \<h1\>We're sorry, but something went wrong.\</h1\> \<p\>We've been notified about this issue and we'll take a look at it shortly.\</p\> \</div\> \</body\> \</html\>
I suppose this functions is still not available. Any information?