this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at DavidBuchanan314/oauth-docs 50 lines 1.9 kB view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package bsky 4 5// schema: app.bsky.graph.getListsWithMembership 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13// GraphGetListsWithMembership_ListWithMembership is a "listWithMembership" in the app.bsky.graph.getListsWithMembership schema. 14// 15// A list and an optional list item indicating membership of a target user to that list. 16type GraphGetListsWithMembership_ListWithMembership struct { 17 List *GraphDefs_ListView `json:"list" cborgen:"list"` 18 ListItem *GraphDefs_ListItemView `json:"listItem,omitempty" cborgen:"listItem,omitempty"` 19} 20 21// GraphGetListsWithMembership_Output is the output of a app.bsky.graph.getListsWithMembership call. 22type GraphGetListsWithMembership_Output struct { 23 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 24 ListsWithMembership []*GraphGetListsWithMembership_ListWithMembership `json:"listsWithMembership" cborgen:"listsWithMembership"` 25} 26 27// GraphGetListsWithMembership calls the XRPC method "app.bsky.graph.getListsWithMembership". 28// 29// actor: The account (actor) to check for membership. 30// purposes: Optional filter by list purpose. If not specified, all supported types are returned. 31func GraphGetListsWithMembership(ctx context.Context, c util.LexClient, actor string, cursor string, limit int64, purposes []string) (*GraphGetListsWithMembership_Output, error) { 32 var out GraphGetListsWithMembership_Output 33 34 params := map[string]interface{}{} 35 params["actor"] = actor 36 if cursor != "" { 37 params["cursor"] = cursor 38 } 39 if limit != 0 { 40 params["limit"] = limit 41 } 42 if len(purposes) != 0 { 43 params["purposes"] = purposes 44 } 45 if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.getListsWithMembership", params, nil, &out); err != nil { 46 return nil, err 47 } 48 49 return &out, nil 50}