akiomik / seiun

An experimental ATP/Bluesky client app for Android
https://play.google.com/store/apps/details?id=io.github.akiomik.seiun
Apache License 2.0
68 stars 6 forks source link

Support for My Feeds #95

Open brian6932 opened 9 months ago

brian6932 commented 9 months ago

https://bsky.app/feeds

request (replace $server with your local server, and $jwt with your jwt token)

GET /xrpc/app.bsky.actor.getPreferences HTTP/2
Host: enoki.$server.host.bsky.network
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:120.0) Gecko/20100101 Firefox/120.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
authorization: Bearer $jwt
Origin: https://bsky.app
DNT: 1
Sec-GPC: 1
Connection: keep-alive
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: cross-site
If-None-Match: W/"349-SWwpR5qWL31vpiXvOJvXryqYzQU"
TE: trailers

response

{
    "preferences": [
        {
            "$type": "app.bsky.actor.defs#savedFeedsPref",
            "pinned": [
                "at://did:plc:...",
                "at://did:plc:...",
                "at://did:plc:...",
                "at://did:plc:...",
                "at://did:plc:..."
            ],
            "saved": [
                "at://did:plc:...",
                "at://did:plc:...",
                "at://did:plc:...",
                "at://did:plc:...",
                "at://did:plc:...",
                "at://did:plc:...",
                "at://did:plc:...",
                "at://did:plc:...",
                "at://did:plc:...",
                "at://did:plc:..."
            ]
        }
    ]
}