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

feat(service): add support for matrix server #61

Closed
matbgn opened this issue Mar 31, 2022 · 5 comments · Fixed by #65
Closed

feat(service): add support for matrix server #61

matbgn opened this issue Mar 31, 2022 · 5 comments · Fixed by #65
Assignees
Labels
feature Support for new feature good first issue Good for newcomers up for grabs This is available for contribution

Comments

@matbgn
Copy link

matbgn commented Mar 31, 2022

Matrix is free and open source self hosted service. Adding it to the supported push services will be useful.

It's the back-end part of the formerly known Riot.im know called Element

Describe the solution you'd like

Server has an api which can be used to send messages.

Additional context

Some useful links:

@matbgn
Copy link
Author

matbgn commented Mar 31, 2022

The detailed structure looks like this:

curl -XPOST -d '{"msgtype":"m.text", "body":"TEXT_MESSAGE_TO_BE_SENT"}' "https://MATRIX_SERVER_URL/_matrix/client/r0/rooms/%21ROOM_IDENTIFIER:MATRIX_DOMAIN/send/m.room.message?access_token=USER_ACCESS_TOKEN

e.g. for ENVs:

  • TEXT_MESSAGE_TO_BE_SENT="Hello"
  • MATRIX_SERVER_URL="matrix.example.com"
  • ROOM_IDENTIFIER="nRSNvEQVyMBIkIJPTc" # Without exclamation mark !, in curl command replaced by %21
  • MATRIX_DOMAIN="example.com" # could possibly be deduced from MATRIX_SERVER_URL
  • USER_ACCESS_TOKEN="ABC_XXXXXXXX_YYYYYYYYYYYYYYYYYYYY_ZZZZZZ"

Hope that helps

@kha7iq kha7iq added good first issue Good for newcomers feature Support for new feature up for grabs This is available for contribution labels Apr 1, 2022
@ahdekkers
Copy link
Contributor

I'd be happy to work on this issue

@kha7iq
Copy link
Owner

kha7iq commented May 15, 2022

@ahdekkers
You can assign the issue to your self.
let me know if anything i can assist with.

@ahdekkers
Copy link
Contributor

Ok, thanks. Sorry but I'm a bit new to the whole open source contributing business, and not sure how to assign myself :) If you could let me know how to do that, that would be helpful - will get started on this in the meantime anyway, @kha7iq.

@kha7iq
Copy link
Owner

kha7iq commented May 15, 2022

I am glad that you have chosen to dedicate some time for this project, i have assigned the issue to you.
Just ask in the task if you need anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Support for new feature good first issue Good for newcomers up for grabs This is available for contribution
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants