Hi everyone,
I am having trouble retrieving workspace from Smartsheet using Python. I installed smartsheet-python SDK already and have the token and headers for authorization so no problem there (can access sheets etc).
Here is the error: TypeError: get_workspace() missing 1 required positional argument: 'workspace_id'
Attached is my code. As I was typing get_workspace, it asks for an argument called self. I am unsure what to pass on that.
Also, Smartsheet API have a sample code on Python for getting workspaces which involves the code:
workspace = smartsheet_client.Workspaces.get_workspace(6621332407379844) # workspace_id
But I get an error that smartsheet_client is not defined. How can I fix these?
Thank you for your help!