Last active
September 28, 2016 02:25
-
-
Save sakadon/a18230e3911644c48596b2a067c2cedd to your computer and use it in GitHub Desktop.
Sheetsu APIでの複数行(rows)POSTの実装 ref: http://qiita.com/sakadon/items/cfda5c80bcf170bda867
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"}] }' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = { | |
rows: [ | |
{}, {}, {}, ... | |
] | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.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