Skip to content

Instantly share code, notes, and snippets.

View alanwsmith's full-sized avatar

Alan Smith alanwsmith

View GitHub Profile
@alanwsmith
alanwsmith / main.sh
Created May 18, 2023 22:28 — forked from pojntfx/main.sh
Bluesky/AT Protocol: cURL API Interaction Cheatsheet
#!/bin/bash
# This script resolves a DID, retrieves an API key, fetches a user's feed,
# and posts a "Hello, world" message to the user's feed.
# Resolve DID for handle
HANDLE='felicitas.pojtinger.com'
DID_URL="https://bsky.social/xrpc/com.atproto.identity.resolveHandle"
export DID=$(curl -G \
--data-urlencode "handle=$HANDLE" \