this repo has no description
atproto
bluesky
typescript
express
1import { AtpAgent } from "@atproto/api";
2
3export async function getTimeline(agent: AtpAgent, cursor?: string) {
4 const response = await agent.getTimeline({
5 cursor: cursor,
6 });
7 return response.data;
8}
9
10export async function searchActors(agent: AtpAgent, q: string) {
11 const response = await agent.searchActors({
12 q: q,
13 });
14 return response.data.actors;
15}
16
17export async function getPostThread(agent: AtpAgent, uri: string) {
18 const response = await agent.getPostThread({
19 uri: uri
20 });
21 return response.data.thread.post;
22}