What are the classes in smartsheet-csharp-sdk for webhook callbacks

Options

Hi there, What are the classes in smartsheet-csharp-sdk for webhook callbacks?

I can see two call backs that will have different classes for callback to the CallbackUrl

  1. Verification
  2. Callback Event

But I don't see the classes in the SDK that I should be getting back?

Any ideas or examples of the C# call back process?

P.S. The reason I ask is spinning up debug on this is not easy, you have to build and deploy as the call back will only work on an external IP with a valid Cert, so I cannot easily discover the return object shapes.

Answers

  • Julio S.
    Julio S. Moderator
    edited 09/24/22
    Options

    Hi @Stephen J. Naughton,

    You may use the following basic property definitions for your convenience:

    {
    public long? ScopeObjectId { get; set; }
    public long? WebhookId { get; set; }
    public List<CallbackEvent> Events { get; set; }
    public string NewWebhookStatus { get; set; }
    public string Nonce { get; set; }
    public string Scope { get; set; }
    public string Timestamp { get; set; }
    public string Challenge { get; set; }
    }
     
    public class CallbackEvent
    {
    public long? Id { get; set; }
    public long? ColumnId { get; set; }
    public long? RowId { get; set; }
    public long? UserId { get; set; }
    public string ObjectType { get; set; }
    public string ChangeAgent { get; set; }
    public string EventType { get; set; }
    public string Timestamp { get; set; }
    } 
    

    I hope that these can be of help.

    Cheers!

    Julio