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
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 495 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives