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

Method values_clear

gspread/http_client.py:194–205  ·  view source on GitHub ↗

Lower-level method that directly calls `spreadsheets/ /values:clear `_. :param str range: The `A1 notation `_ of the values to clear

(self, id: str, range: str)

Source from the content-addressed store, hash-verified

192 return r.json()
193
194 def values_clear(self, id: str, range: str) -> Any:
195 """Lower-level method that directly calls `spreadsheets/<ID>/values:clear <https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/clear>`_.
196
197 :param str range: The `A1 notation <https://developers.google.com/sheets/api/guides/concepts#a1_notation>`_ of the values to clear.
198 :returns: `Values Clear Response body <https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/clear#response-body>`_.
199 :rtype: dict
200
201 .. versionadded:: 3.0
202 """
203 url = SPREADSHEET_VALUES_CLEAR_URL % (id, quote(range))
204 r = self.request("post", url)
205 return r.json()
206
207 def values_batch_clear(
208 self,

Callers 1

clearMethod · 0.45

Calls 2

requestMethod · 0.95
quoteFunction · 0.85

Tested by

no test coverage detected