audreyt / ethercalc

Node.js port of Multi-user SocialCalc
https://ethercalc.net
Other
2.97k stars 538 forks source link

Looking for put API call with select options passed #744

Closed balaji-ranga closed 3 years ago

balaji-ranga commented 3 years ago

curl -k --include --request PUT --header "Content-Type: text/csv" --data-binary @./Downloads/testt.csv 'https://hostname/_/sittest'

Above command helps me initalize the sheet and i need to set a value in the sheet as select box. I tried sending CSV like below s.no,Gender 1,"=Select('male','male,female')" or s.no,Gender 1,"Select('male','male,female')" Nothing works. Can you please help me with any option

eddyparkinson commented 3 years ago

Use the API - https://ethercalc.docs.apiary.io/

curl -H "Content-Type: application/json" -X POST -d '{"command":["set C2 formula textbox(\"fred@gmail\")"]}' http://host/_/sheetname

you can't add formulas via csv

you can do more than one "set" per curl. it is a list

-- I will close this, but let me know if you need more help

balaji-ranga commented 3 years ago

Thanks a lot @eddyparkinson