Phil Morrell
|
f103ce8649
|
update spaces json from API
* paginated, append `&from=$FROM` and repeat until "null"
SPACE='!IdUUdKALNzBLKEjvbP:matrix.org'
URL="https://freedombox.emorrp1.name/_matrix/client/unstable/org.matrix.msc2946/rooms/$SPACE/hierarchy?access_token=$TOKEN"
FROM=$(curl "$URL" | tee -a hierarchy.json | jq -r .next_batch); echo $FROM
jq -s 'map(.rooms) | add' hierarchy.json > libregamingspaces.json
|
2022-02-12 15:09:53 +00:00 |