Change Agent with Python SDK is not working
Hi,
I'm using smartsheet-python-sdk version 3.0.2 with Python 3.11 and trying to set the Change Agent so I can use it to read when receiving the webhooks but although I pass the change_agent parameter this is not being applied. When i made the request using cURL it works fine.
The below is how I set the change_agent:
smartsheet_client = smartsheet.Smartsheet(access_token="MyToken",user_agent="MyAgent")
Any suggestions?
Best Answer
-
For anyone having same issue, please see my solution below:
I had to go through the smartsheet sdk to understand how to declare the change_agent.
In smartsheet_client you need to use with_change_agent() function as per sample below:
smartsheet_client.with_change_agent('YouChangeAgentHere')
Answers
-
For anyone having same issue, please see my solution below:
I had to go through the smartsheet sdk to understand how to declare the change_agent.
In smartsheet_client you need to use with_change_agent() function as per sample below:
smartsheet_client.with_change_agent('YouChangeAgentHere')
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives