ユーザ用ツール

サイト用ツール


サイドバー

google:oauth_2.0_playground

OAuth 2.0 Playground

SpreadSheetの操作

調べ方

Http MethodをGETにする
Request URIに

https://sheets.googleapis.com/v4/spreadsheets/{spreadsheetId}?includeGridData=trueを入力

した値を比較する

APIサンプル

ブック名の変更

      let url2 = "https://sheets.googleapis.com/v4/spreadsheets/" + this.state.spreadsheetId + ":batchUpdate"
      let bodyString = '{"requests": [{"updateSpreadsheetProperties": {"properties": {"title": "ブック名"},"fields": "title"}}]}'

シート名の変更

      let url2 = "https://sheets.googleapis.com/v4/spreadsheets/" + this.state.spreadsheetId + ":batchUpdate"
      let bodyString = `{
        "requests": [
          {
            "updateSheetProperties": {
              "properties": {"sheetId": 0, "title": "問題"},
              "fields": "title"
            }
          },
        ]
      }`
google/oauth_2.0_playground.txt · 最終更新: 2019/02/08 00:09 by ips