هنا أمر لإرسال رسالة في بروتوكول ماتركس باستخدام CURL, و Access token
curl 'https://matrix.org/_matrix/client/r0/rooms/!xxxxxx:example.com/send/m.room.message/?access_token=xxxxxxxx' -X PUT --data '{"msgtype":"m.text","body":"hello world"}'الحصول على access token
إذا لم يكن لديك access token, بإمكانك الحصول عليها من Curl أيضا
curl -XPOST \
-d '{"type":"m.login.password", "user":"", "password":""}' \
"https://matrix.org/_matrix/client/r0/login"