SignNow.NET icon indicating copy to clipboard operation
SignNow.NET copied to clipboard

Webhook implementation

Open FedericoBernardi opened this issue 3 years ago • 18 comments

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

FedericoBernardi avatar Feb 14 '22 00:02 FedericoBernardi

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.

AlexNDRmac avatar Feb 14 '22 09:02 AlexNDRmac

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 avatar Feb 14 '22 10:02 FedericoBernardi

Hi Alex, any update about webhooks?

FedericoBernardi avatar Mar 01 '22 16:03 FedericoBernardi

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

AlexNDRmac avatar Mar 01 '22 17:03 AlexNDRmac

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

FedericoBernardi avatar Mar 01 '22 18:03 FedericoBernardi

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

nmg196 avatar Apr 12 '22 14:04 nmg196

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

AlexNDRmac avatar Apr 12 '22 14:04 AlexNDRmac

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.

nmg196 avatar Apr 12 '22 15:04 nmg196

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.

AlexNDRmac avatar Apr 12 '22 15:04 AlexNDRmac

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 avatar Apr 12 '22 16:04 nmg196

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?

nmg196 avatar Apr 13 '22 13:04 nmg196

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

AlexNDRmac avatar Apr 13 '22 16:04 AlexNDRmac

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

  • The API endpoint for create or delete (verbs: POST / DELETE) webhooks (events) uses a Bearer token.
  • The API endpoint for getting webhooks (verb GET) uses Basic Auth!
  • The API endpoint for updating (PUT) uses Bearer token OR Basic Auth

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

Thanks Nick

nmg196 avatar Apr 22 '22 15:04 nmg196

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

alexmohr1966 avatar Feb 11 '23 22:02 alexmohr1966

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

AlexNDRmac avatar Feb 13 '23 11:02 AlexNDRmac

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

alexmohr1966 avatar Feb 13 '23 13:02 alexmohr1966

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

nmg196 avatar Feb 13 '23 15:02 nmg196

Thank you @nmg196, much appreciated.

alexmohr1966 avatar Feb 13 '23 15:02 alexmohr1966

implemented in v1.3.0, please update signNow packages and use. Thanks

AlexNDRmac avatar Dec 18 '24 15:12 AlexNDRmac