A third party ATProto appview
1#!/bin/bash
2
3# Test notification XRPC endpoints
4
5source "$(dirname "$0")/config.sh"
6
7echo "================================"
8echo "Notification XRPC Tests"
9echo "================================"
10echo ""
11
12# List notifications
13make_request "GET" "/xrpc/app.bsky.notification.listNotifications?limit=10"
14
15# Get unread count
16make_request "GET" "/xrpc/app.bsky.notification.getUnreadCount"
17
18# Update seen (requires authentication)
19make_request "POST" "/xrpc/app.bsky.notification.updateSeen" '{
20 "seenAt": "'"$(date -u +"%Y-%m-%dT%H:%M:%SZ")"'"
21}'
22
23# Register push (requires authentication)
24make_request "POST" "/xrpc/app.bsky.notification.registerPush" '{
25 "serviceDid": "did:web:push.example.com",
26 "token": "test-push-token",
27 "platform": "web",
28 "appId": "com.example.app"
29}'
30
31# Put preferences (requires authentication)
32make_request "POST" "/xrpc/app.bsky.notification.putPreferences" '{
33 "priority": true
34}'