package semble import "context" func (c *Client) GetMyProfile(ctx context.Context, includeStats bool) (*User, error) { var out User return &out, c.get( ctx, "network.cosmik.actor.getMyProfile", values(qp("includeStats", includeStats)), &out, ) } func (c *Client) GetProfile( ctx context.Context, identifier string, includeStats bool, ) (*User, error) { var out User return &out, c.get( ctx, "network.cosmik.actor.getProfile", values(qp("identifier", identifier), qp("includeStats", includeStats)), &out, ) } func (c *Client) Follow( ctx context.Context, targetID string, targetType TargetType, ) (*IDResponse, error) { var out IDResponse return &out, c.post( ctx, "network.cosmik.graph.follow", map[string]string{"targetId": targetID, "targetType": string(targetType)}, &out, ) } func (c *Client) Unfollow( ctx context.Context, targetID string, targetType TargetType, ) (*IDResponse, error) { var out IDResponse return &out, c.post( ctx, "network.cosmik.graph.unfollow", map[string]string{"targetId": targetID, "targetType": string(targetType)}, &out, ) } func (c *Client) GetFollowing( ctx context.Context, id string, p PageQuery, ) (*Page[User], error) { var out Page[User] return &out, c.get( ctx, "network.cosmik.graph.getFollowing", values(qp("identifier", id), qp("page", p.Page), qp("limit", p.Limit)), &out, ) } func (c *Client) GetFollowers( ctx context.Context, id string, p PageQuery, ) (*Page[User], error) { var out Page[User] return &out, c.get( ctx, "network.cosmik.graph.getFollowers", values(qp("identifier", id), qp("page", p.Page), qp("limit", p.Limit)), &out, ) } func (c *Client) GetFollowingCollections( ctx context.Context, id string, p PageQuery, ) (*Page[Collection], error) { var out Page[Collection] return &out, c.get( ctx, "network.cosmik.graph.getFollowingCollections", values(qp("identifier", id), qp("page", p.Page), qp("limit", p.Limit)), &out, ) } func (c *Client) GetFollowingCount(ctx context.Context, id string) (*CountResponse, error) { var out CountResponse return &out, c.get( ctx, "network.cosmik.graph.getFollowingCount", values(qp("identifier", id)), &out, ) } func (c *Client) GetFollowersCount(ctx context.Context, id string) (*CountResponse, error) { var out CountResponse return &out, c.get( ctx, "network.cosmik.graph.getFollowersCount", values(qp("identifier", id)), &out, ) } func (c *Client) GetFollowingCollectionsCount( ctx context.Context, id string, ) (*CountResponse, error) { var out CountResponse return &out, c.get( ctx, "network.cosmik.graph.getFollowingCollectionsCount", values(qp("identifier", id)), &out, ) }