CodeTabs

One snippet in several languages behind a zero-JS tab strip.

Live

Go
TypeScript
curl
2 lines
c := client.NewClient(baseURL, nil)page, err := c.ListPosts(ctx, nil)
2 lines
const api = new Client({ baseURL, token });const page = await api.posts.list({ limit: 25 });
1 lines
curl -H "Authorization: Bearer $TOKEN" "$BASE/posts?limit=25"