-
Notifications
You must be signed in to change notification settings - Fork 4
/
curl requests.txt
10 lines (5 loc) · 984 Bytes
/
curl requests.txt
1
2
3
4
5
6
7
8
9
10
Replace ${HOST} with your host example : http://192.168.1.2:8989
Request to retrieve users
curl '${HOST}/api/graphql' -H 'Accept-Encoding: gzip, deflate, br' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'DNT: 1' -H 'Origin: ${HOST}' --data-binary '{"query":"{users {id, login, pass}}"}' --compressed
Request to retrieve channels
curl '${HOST}/api/graphql' -H 'Accept-Encoding: gzip, deflate, br' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'DNT: 1' -H 'Origin: ${HOST}' --data-binary '{"query":"query Channels($limit: Int!, $offset: Long!, $model: ChannelFilterModel!) {\n channels(limit: $limit, offset: $offset, model: $model) {\n hasMore\n channels {\n id\n name\n lang\n url\n vIndex\n __typename\n }\n __typename\n }\n}\n","variables":{"limit":50,"offset":0,"model":{"searchString":"","provider":"","lang":""}}}' --compressed