A third party ATProto appview
1#!/bin/bash
2
3# Test all graph/relationship XRPC endpoints
4
5source "$(dirname "$0")/config.sh"
6
7echo "================================"
8echo "Graph XRPC Tests"
9echo "================================"
10echo ""
11
12# Get follows
13make_request "GET" "/xrpc/app.bsky.graph.getFollows?actor=$TEST_DID&limit=10"
14
15# Get followers
16make_request "GET" "/xrpc/app.bsky.graph.getFollowers?actor=$TEST_DID&limit=10"
17
18# Get blocks
19make_request "GET" "/xrpc/app.bsky.graph.getBlocks?limit=10"
20
21# Get mutes
22make_request "GET" "/xrpc/app.bsky.graph.getMutes?limit=10"
23
24# Get relationships
25make_request "GET" "/xrpc/app.bsky.graph.getRelationships?actor=$TEST_DID&others=$TEST_DID"
26
27# Get known followers
28make_request "GET" "/xrpc/app.bsky.graph.getKnownFollowers?actor=$TEST_DID&limit=10"
29
30# Get suggested follows by actor
31make_request "GET" "/xrpc/app.bsky.graph.getSuggestedFollowsByActor?actor=$TEST_DID&limit=10"
32
33# Get list
34make_request "GET" "/xrpc/app.bsky.graph.getList?list=at://did:plc:example/app.bsky.graph.list/test&limit=10"
35
36# Get lists
37make_request "GET" "/xrpc/app.bsky.graph.getLists?actor=$TEST_DID&limit=10"
38
39# Get list mutes
40make_request "GET" "/xrpc/app.bsky.graph.getListMutes?limit=10"
41
42# Get list blocks
43make_request "GET" "/xrpc/app.bsky.graph.getListBlocks?limit=10"
44
45# Get starter pack
46make_request "GET" "/xrpc/app.bsky.graph.getStarterPack?starterPack=at://did:plc:example/app.bsky.graph.starterpack/test"
47
48# Get starter packs
49make_request "GET" "/xrpc/app.bsky.graph.getStarterPacks?uris=at://did:plc:example/app.bsky.graph.starterpack/test"
50
51# Mute actor (requires authentication)
52make_request "POST" "/xrpc/app.bsky.graph.muteActor" '{
53 "actor": "'"$TEST_DID"'"
54}'
55
56# Unmute actor (requires authentication)
57make_request "POST" "/xrpc/app.bsky.graph.unmuteActor" '{
58 "actor": "'"$TEST_DID"'"
59}'
60
61# Mute actor list (requires authentication)
62make_request "POST" "/xrpc/app.bsky.graph.muteActorList" '{
63 "list": "at://did:plc:example/app.bsky.graph.list/test"
64}'
65
66# Unmute actor list (requires authentication)
67make_request "POST" "/xrpc/app.bsky.graph.unmuteActorList" '{
68 "list": "at://did:plc:example/app.bsky.graph.list/test"
69}'
70
71# Mute thread (requires authentication)
72make_request "POST" "/xrpc/app.bsky.graph.muteThread" '{
73 "root": "'"$TEST_POST_URI"'"
74}'