signnow / SignNow.NET

SignNow.Net is the official .NET 4.5+ and .NET Standard class library for the SignNow API. SignNow allows you to embed legally-binding e-signatures into your app, CRM or cloud storage. Send documents for signature directly from your website. Invite multiple signers to finalize contracts.
https://www.signnow.com/developers
MIT License
16 stars 12 forks source link

Webhook implementation #136

Open FedericoBernardi opened 2 years ago

FedericoBernardi commented 2 years ago

Is there any way to use webhooks with this library? I managed to fit all our integration with this library! Great job! Only the webhooks are missing

AlexNDRmac commented 2 years ago

Currently webhooks are not implemented, but this feature can be implemented in next version. If you can wait, I'll implement webhooks with some other feature in next SDK version. ETA ~2 weeks.

FedericoBernardi commented 2 years ago

Currently webhooks are not implemented, but this feature can be implemented in next version. If you can wait, I'll implement webhooks with some other feature in next SDK version. ETA ~2 weeks.

Thanks for the reply, of course I can wait. I'll test as soon as it will be available :-) FYI, one more missing feature I think is template upload. A workaround I've found is creating a document, transform the document into template and delete the document

Thanks again

FedericoBernardi commented 2 years ago

Hi Alex, any update about webhooks?

AlexNDRmac commented 2 years ago

Sorry, but Russia attacked my country... we have a war. I'll try to implement as soon as I can

FedericoBernardi commented 2 years ago

No problem, really, I understand. The situation in Ukraine is orribile. The whole democratic world is on your side

nmg196 commented 2 years ago

Hope you're OK Alex! This situation is absolutely terrible.

AlexNDRmac commented 2 years ago

Thank you for you support! I'm fine as it can be possible in this situation and trying to implement webhooks.

nmg196 commented 2 years ago

Great to hear. I'm amazed how great support has continued to be on Live Chat with all your country is going through. In the mean time I think I can still make use of webhooks using the bare RestAPI and restsharp.

AlexNDRmac commented 2 years ago

I'm working on webhooks implementation now. With your own implementation you might miss some edge cases like data validation, response/request conversion. So if you can wait, I'll try to speedup with implementation.

nmg196 commented 2 years ago

Yeah don't rush it :) For me it appears to be working OK in Postman. The only thing I'm not sure about is the possible values for "event" as the docs don't really say. But that said - I have a feeling all I need is "document.complete"

nmg196 commented 2 years ago

Do you know if there is a way to subscribe to all "document.complete" events in a particular account? Otherwise I think I need to set up a new webhook for each document (entity_id) individually?

AlexNDRmac commented 2 years ago

user.document.complete should help with subscription for all the documents.

nmg196 commented 2 years ago

Regarding the Webhooks 2.0 API, this really caught me out:

Really confusing. I don't know why all 4 don't just use Basic Auth for all 4 verbs.

Thanks Nick

alexmohr1966 commented 1 year ago

Hi, any update on webhook integration? I am currently evaluating the signNow API and webhooks would be such a useful feature. Thanks, Alex

AlexNDRmac commented 1 year ago

Need to finish with GET events implementation, other methods are implemented. I'll back to work on it soon, sorry for the long delay.

alexmohr1966 commented 1 year ago

Thanks Alex for your reply. Any chance for sharing the code for creating an event subscription?

nmg196 commented 1 year ago

If you need a stop gap (as I did) it's pretty easy to do by hand with a lib like RestSharp (etc). I made a few methods like this to fill in the gaps where there was no C# API. I didn't want ot put Alex under more stress with what he's already dealing with in Ukraine ❤️

image

alexmohr1966 commented 1 year ago

Thank you @nmg196, much appreciated.