How do I get all the rows in a Smartsheet by sending an API call using the requests package in pytho

I am trying to get just the rows (list of rows) in a smartsheet in a single API call by using the Python requests package instead of the smartsheet SDK.


I tried to use /rows in my request like so:

r = requests.get("https://api.smartsheet.com/2.0/sheets/{sheetID}/rows", headers=smartHeaders, params=payload)

but unfortunately it does not work and I get a 400 level error code 405. I have created a post on this question in this link for more information

Any help is greatly appreciated.

Answers