最后活跃于 1705433084

Matrix access token

修订 b91c287823e257d5761938bb4ad08a3360ba4947

get_token.sh 原始文件
1#!/bin/bash
2
3# curl -XPOST -d '{"type": "m.login.password", "identifier": {"user": "botusername", "type": "m.id.user"}, "password": "passwordforuser"}' "https://home.server/_matrix/client/r0/login"
4
5USER=
6PASSWORD=
7HOMESERVER='https://'
8
9STR="{\"type\": \"m.login.password\", \"identifier\": {\"user\": \"$USER\", \"type\": \"m.id.user\"}, \"password\": \"$PASSWORD\"}
10curl -XPOST -d "$STR" "$HOMESERVER/_matrix/client/r0/login"