Change Agent with Python SDK is not working

kskarz
kskarz ✭✭✭✭

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

  • kskarz
    kskarz ✭✭✭✭
    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

  • kskarz
    kskarz ✭✭✭✭
    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')