Something went wrong. Try again.
Go client library for the Semble API
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141package 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, )}