Closed twothreenine closed 4 years ago
should the data include the sheet name?
It looks to use create here: https://github.com/audreyt/ethercalc/blob/master/API.md
you should be able to test this directly from the command line.
new_sheet_host.create(test_sheet, format="socialcalc", id="3g15x60fbv6l")
should test_sheet include the sheet name? i.e. it wants a json { "room": "test" , "snapshot": "..." }
Note there have been a lot of problems with import because of changes to https://github.com/SheetJS/sheetjs
form will auto duplicate a sheet
http://sheet.cellmaster.com.au/exampleform/form
I don't know if it helps.
Thanks for the reply, but the opposite seems to be the case.
I could make it work by using the update function instead of create and replacing lines 122:127 in @joequant 's python wrapper by
return self.put(sid, data, "text/x-socialcalc")
Glad you found a solution. There looks to be a shortage of example in here: https://github.com/joequant/ethercalc-python/tree/master/examples
This makes it hard understand correct usage.
I will close this, let us know if you want more help.
Sorry for this question, I'm probably missing something simple. I'm trying to write a Python script that duplicates an ethercalc sheet into another sheet, using this python wrapper around ethercalc API. When executed, the ethercalc page shows me every single line from the socialcalc save as an error message "unkown command" (after being refreshed)
(followed by all the remaining lines of the socialcalc save)
Is the ethercalc-python API outdated, is it an error within ethercalc.org or am I making a simple mistake here?