Skip to content

Instantly share code, notes, and snippets.

@sakadon
Last active September 28, 2016 02:25
Show Gist options
  • Save sakadon/a18230e3911644c48596b2a067c2cedd to your computer and use it in GitHub Desktop.
Save sakadon/a18230e3911644c48596b2a067c2cedd to your computer and use it in GitHub Desktop.
Sheetsu APIでの複数行(rows)POSTの実装 ref: http://qiita.com/sakadon/items/cfda5c80bcf170bda867
curl -X POST -H "Content-Type: application/json" https://sheetsu.com/apis/v1.0/ENDPOINT -d '{ "rows": [{"TimeStamp":"2016/9/27 1:23","undefined":"fuga"}, {"TimeStamp":"2016/9/28 2:34","undefined":"moga"}] }'
var request = {
rows: [
{}, {}, {}, ...
]
};
$.ajax({
type : 'POST',
url : '//sheetsu.com/apis/v1.0/ENDPOINT',
dataType: 'json',
contentType: 'application/json',
data : JSON.stringify(request)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment