Installation
SKILL.md
Pinterest API v5
Use the official API through the bundled standard-library client. The user's
OAuth token is injected as $PINTEREST_TOKEN; never print it.
P="$SKILL_DIR/scripts/pinterest.py"
[ -f "$P" ] || P=$(find /tmp -maxdepth 8 -path '*/skills/*/pinterest/scripts/pinterest.py' 2>/dev/null | head -1)
[ -f "$P" ] || { echo "pinterest script not found" >&2; exit 1; }
python3 "$P" whoami
python3 "$P" boards --limit 25
python3 "$P" pins --board-id BOARD_ID --limit 25
Create an image Pin
Pinterest's content API is for new content created by the user. Do not copy or republish third-party images without authorization.