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

Feature Request: HTTP/REST sink or other connection to Node.js app #43

Closed
memewhale opened this issue Jan 8, 2022 · 3 comments · Fixed by #51
Closed

Feature Request: HTTP/REST sink or other connection to Node.js app #43

memewhale opened this issue Jan 8, 2022 · 3 comments · Fixed by #51
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@memewhale
Copy link

Would it be possible to provide a sink that makes a request to a (local) HTTP server?

My use case is that I have a Node.js project that acts upon events on the Cardano blockchain. I'm currently using PostgreSQL notifications but would like to simplify the setup with Oura. HTTP would be a simple option, but if you can recommend other ways to receive Oura events in JS, I'm also interested.

I'm also specifically only interested in transactions (and their metadata and multi-asset info etc) to one specific Cardano address.

Thank you!

@mark-stopka mark-stopka added the enhancement New feature or request label Jan 8, 2022
@mark-stopka
Copy link
Collaborator

It is already in the feature backlog (in a README file)...

@scarmuega scarmuega moved this to In Progress in Oura Development Jan 12, 2022
Repository owner moved this from In Progress to Done in Oura Development Jan 12, 2022
@scarmuega
Copy link
Member

@memewhale we have merged the code that introduces the new "webhook" sink. It will be shipped in the next release (later this week), but you can try it out if you build from source code.

You should be able to use it to call your Node.js service. We're still working on the documentation, but a minimal configuration of the sink would look like this:

[sink]
type = "Webhook"

# url of your remote endpoint (needs to accept POST method)
url = "http://localhost:5000/events"

# value to add as the 'Authorization' http header
authorization = "user:pass"

# key-value map of extra headers to pass in each http call
[sink.headers]
extra_header_1 = "abc"
extra_header_2 = "123"

@memewhale
Copy link
Author

Thanks a lot, I'll check it out!

@mark-stopka mark-stopka added this to the v1.1 milestone Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants