This small library provides a go client to interact with /.well-known/matrix/support endpoint.
The following MSCs are supported:
- MSC1929 - the
/.well-known/matrix/supportendpoint - MSC4121 - the moderator role
- MSC4265 - the DPO role
- MSC4439 - the PGP key field
Initially it was developed to be used in the Matrix Rooms Search project, but it can be used in any other project that needs to interact with the admin contact API.
package main
import (
"fmt"
"github.com/etkecc/go-msc1929"
)
func main() {
contacts, err := msc1929.Get("matrix.org")
if err != nil {
fmt.Println(err)
}
fmt.Println(contacts.AdminEmails())
}