Skip to content

Commit ccab7da

Browse files
committed
Updates README.md
1 parent 3be8a1a commit ccab7da

File tree

1 file changed

+29
-4
lines changed

1 file changed

+29
-4
lines changed

README.md

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,12 @@ response = client.files.drive_get_item(item_id)
230230
response = client.files.drive_download_contents(item_id)
231231
```
232232

233+
#### Search for files
234+
```
235+
query = ".xlsx, .xlsm"
236+
response = client.files.search_items(query)
237+
```
238+
233239
### Workbooks
234240
#### Create session for specific item
235241
```
@@ -288,27 +294,46 @@ response = client.workbooks.add_table(workbook_id)
288294

289295
#### Add column to table
290296
```
291-
response = client.workbooks.create_column(workbook_id, worksheet_id, table_id)
297+
response = client.workbooks.create_table_column(workbook_id, worksheet_id, table_id)
292298
```
293299

294300
#### Add row to table
295301
```
296-
response = client.workbooks.create_row(workbook_id, worksheet_id, table_id)
302+
response = client.workbooks.create_table_row(workbook_id, worksheet_id, table_id)
297303
```
298304

299305
#### Get table rows
300306
```
301-
response = client.workbooks.list_rows(workbook_id, table_id)
307+
response = client.workbooks.list_table_rows(workbook_id, table_id)
302308
```
303309

304310
#### Get range
305311
```
306312
response = client.workbooks.get_range(workbook_id, worksheet_id)
307313
```
308314

315+
#### Get used range
316+
```
317+
response = client.workbooks.get_used_range(workbook_id, worksheet_id)
318+
```
319+
309320
#### Update range
310321
```
311-
response = client.workbooks.update_range(workbook_id, worksheet_id)
322+
response1 = client.workbooks.create_session(workbook_id)
323+
workbook_session_id = response1.data["id"]
324+
325+
client.set_workbook_session_id(workbook_session_id)
326+
327+
range_address = "A1:D2"
328+
data = {
329+
"values": [
330+
["John", "Doe", "+1 305 1234567", "Miami, FL"],
331+
["Bill", "Gates", "+1 305 1234567", "St. Redmond, WA"],
332+
]
333+
}
334+
response2 = client.workbooks.update_range(workbook_id, worksheet_id, range_address, json=data)
335+
336+
response3 = client.worbooks.close_session(workbook_id)
312337
```
313338

314339
### Webhooks

0 commit comments

Comments
 (0)