kha7iq/pingme

feat(service): add support for matrix server

matbgn opened this issue · 5 comments

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:

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

I'd be happy to work on this issue

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

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.

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.