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

Method values_append

gspread/http_client.py:176–192  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

174 return r.json()
175
176 def values_append(
177 self, id: str, range: str, params: ParamsType, body: Optional[Mapping[str, Any]]
178 ) -> Any:
179 """Lower-level method that directly calls `spreadsheets/<ID>/values:append <https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/append>`_.
180
181 :param str range: The `A1 notation <https://developers.google.com/sheets/api/guides/concepts#a1_notation>`_
182 of a range to search for a logical table of data. Values will be appended after the last row of the table.
183 :param dict params: `Values Append Query parameters <https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/append#query-parameters>`_.
184 :param dict body: `Values Append Request body <https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/append#request-body>`_.
185 :returns: `Values Append Response body <https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/append#response-body>`_.
186 :rtype: dict
187
188 .. versionadded:: 3.0
189 """
190 url = SPREADSHEET_VALUES_APPEND_URL % (id, quote(range))
191 r = self.request("post", url, params=params, json=body)
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>`_.

Callers 3

append_rowsMethod · 0.45
insert_rowsMethod · 0.45
insert_colsMethod · 0.45

Calls 2

requestMethod · 0.95
quoteFunction · 0.85

Tested by

no test coverage detected