Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Postback(webhooks) #4

Closed
sivamgr opened this issue Jan 16, 2017 · 4 comments
Closed

Add support for Postback(webhooks) #4

sivamgr opened this issue Jan 16, 2017 · 4 comments

Comments

@sivamgr
Copy link
Contributor

sivamgr commented Jan 16, 2017

https://kite.trade/docs/connect/v1/?shell#postback-webhooks

@vividvilla
Copy link
Member

You can just run a simple web server which accepts the POST request and validates the checksum.

@sivamgr
Copy link
Contributor Author

sivamgr commented Jan 16, 2017

Agreed, the API user can run a webserver of his choice. Does it make sense to, have an helper API included in kiteconnect, to validate the POST content.

kc.validatePostback(content).then(r){
// content validated. add code to handle content here...
}
.catch(err){
 //discard bad post-message
}

@vividvilla
Copy link
Member

Yeah seems like a valid request. Will add it as a feature request.

@vividvilla
Copy link
Member

Thanks for your feedback, it's added in version 1.2.2 - https://github.com/rainmattertech/kiteconnectjs/releases/tag/v1.2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants