Google スプレッドシートを curl で扱う
3232 ワード
Google スプレッドシートを curl で扱うサンプルです。シートのタイトルを変更します。
スクリプト
ACCESS_TOKEN と SPREADSHEET_ID は置き換えて下さい。
#
ACCESS_TOKEN="******"
SPREADSHEET_ID="******"
#
curl -H "Authorization: OAuth "$ACCESS_TOKEN \
-X POST -H "Content-Type: application/json" \
https://sheets.googleapis.com/v4/spreadsheets/$SPREADSHEET_ID:batchUpdat
e -d@in01.json
in01.json
{
"requests": [
{
"updateSpreadsheetProperties": {
"properties": {
"title": "エスペラント語成績表"
},
"fields": "title"
}
}
]
}
アクセストークンは、こちらで作成できます。
Spreadsheets v3
https://spreadsheets.google.com/feeds/
を選びます。有効期限は 3600 秒です。
セルデータの代入・更新のサンプル
Google スプレッドシートを curl で 代入・更新
Author And Source
この問題について(Google スプレッドシートを curl で扱う), 我々は、より多くの情報をここで見つけました https://qiita.com/ekzemplaro/items/bbe4222544eb17110604著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .