MCPcopy
hub / github.com/burnash/gspread / values_batch_update

Method values_batch_update

gspread/http_client.py:258–269  ·  view source on GitHub ↗

Lower-level method that directly calls `spreadsheets/ /values:batchUpdate `_. :param dict body: (optional) `Values Batch Update Request body <https://developers.google.com/sheets/api/reference/res

(
        self, id: str, body: Optional[Mapping[str, Any]] = None
    )

Source from the content-addressed store, hash-verified

256 return r.json()
257
258 def values_batch_update(
259 self, id: str, body: Optional[Mapping[str, Any]] = None
260 ) -> Any:
261 """Lower-level method that directly calls `spreadsheets/<ID>/values:batchUpdate <https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/batchUpdate>`_.
262
263 :param dict body: (optional) `Values Batch Update Request body <https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/batchUpdate#request-body>`_.
264 :returns: `Values Batch Update Response body <https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/batchUpdate#response-body>`_.
265 :rtype: dict
266 """
267 url = SPREADSHEET_VALUES_BATCH_UPDATE_URL % id
268 r = self.request("post", url, json=body)
269 return r.json()
270
271 def spreadsheets_get(self, id: str, params: Optional[ParamsType] = None) -> Any:
272 """A method stub that directly calls `spreadsheets.get <https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/get>`_."""

Callers 1

batch_updateMethod · 0.45

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected