简体   繁体   中英

How to fetch all the data from Smartsheet using API?

I am trying to fetch all the rows that are existing in an Smartsheet using API. I have generated the bearer authorization token and have the report details. My Python is fetching me results of the first 100 rows (source has 1200 rows). I don't use any filters within the Python. Is this due to any default (page-size value)?

I am unable to retrieve all existing data from this API.

With the Smartsheet Python SDK, the get_sheet operation (in sheets.py ) specifies the default page size as 100. get_sheet

You should be able to override this value by specifying the page_size parameter when you call the get_sheet operation.

It's unclear from your question if you are reading a sheet or a report. Sample code would be very helpful.

The report API get_report(report_id, page_size=100, page=1, include=None) also allows you to specify the number of results to return. However, note that you can read a maximum of 500 rows at a time from a report. So you would need to use a loop.

通过使用来自SSH的curl命令并将其命名为Talend,我能够实现这一目标。

curl -X GET -H 'Authorization: Bearer YOURBEARERTOKENGOESHERE' https://YOURREPORTURL -k -i

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM