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

Method values_batch_clear

gspread/http_client.py:207–221  ·  view source on GitHub ↗

Lower-level method that directly calls `spreadsheets/ /values:batchClear` :param dict params: (optional) `Values Batch Clear Query parameters `_. :param dict body: (optional

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

Source from the content-addressed store, hash-verified

205 return r.json()
206
207 def values_batch_clear(
208 self,
209 id: str,
210 params: Optional[ParamsType] = None,
211 body: Optional[Mapping[str, Any]] = None,
212 ) -> Any:
213 """Lower-level method that directly calls `spreadsheets/<ID>/values:batchClear`
214
215 :param dict params: (optional) `Values Batch Clear Query parameters <https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/batchClear#path-parameters>`_.
216 :param dict body: (optional) `Values Batch Clear request body <https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/batchClear#request-body>`_.
217 :rtype: dict
218 """
219 url = SPREADSHEET_VALUES_BATCH_CLEAR_URL % id
220 r = self.request("post", url, params=params, json=body)
221 return r.json()
222
223 def values_get(
224 self, id: str, range: str, params: Optional[ParamsType] = None

Callers 1

batch_clearMethod · 0.45

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected