Documentation ¶
Index ¶
- Constants
- func ListFollowsDelete(ctx context.Context, c *gotwi.GotwiClient, p *types.ListFollowsDeleteParams) (*types.ListFollowsDeleteResponse, error)
- func ListFollowsFollowedLists(ctx context.Context, c *gotwi.GotwiClient, ...) (*types.ListFollowsFollowedListsResponse, error)
- func ListFollowsFollowers(ctx context.Context, c *gotwi.GotwiClient, p *types.ListFollowsFollowersParams) (*types.ListFollowsFollowersResponse, error)
- func ListFollowsPost(ctx context.Context, c *gotwi.GotwiClient, p *types.ListFollowsPostParams) (*types.ListFollowsPostResponse, error)
- func ListLookupID(ctx context.Context, c *gotwi.GotwiClient, p *types.ListLookupIDParams) (*types.ListLookupIDResponse, error)
- func ListLookupOwnedLists(ctx context.Context, c *gotwi.GotwiClient, p *types.ListLookupOwnedListsParams) (*types.ListLookupOwnedListsResponse, error)
- func ListMembersDelete(ctx context.Context, c *gotwi.GotwiClient, p *types.ListMembersDeleteParams) (*types.ListMembersDeleteResponse, error)
- func ListMembersGet(ctx context.Context, c *gotwi.GotwiClient, p *types.ListMembersGetParams) (*types.ListMembersGetResponse, error)
- func ListMembersListMemberships(ctx context.Context, c *gotwi.GotwiClient, ...) (*types.ListMembersListMembershipsResponse, error)
- func ListMembersPost(ctx context.Context, c *gotwi.GotwiClient, p *types.ListMembersPostParams) (*types.ListMembersPostResponse, error)
- func ListTweetsLookup(ctx context.Context, c *gotwi.GotwiClient, p *types.ListTweetsLookupParams) (*types.ListTweetsLookupResponse, error)
- func ManageListsDelete(ctx context.Context, c *gotwi.GotwiClient, p *types.ManageListsDeleteParams) (*types.ManageListsDeleteResponse, error)
- func ManageListsPost(ctx context.Context, c *gotwi.GotwiClient, p *types.ManageListsPostParams) (*types.ManageListsPostResponse, error)
- func ManageListsPut(ctx context.Context, c *gotwi.GotwiClient, p *types.ManageListsPutParams) (*types.ManageListsPutResponse, error)
- func PinnedListsDelete(ctx context.Context, c *gotwi.GotwiClient, p *types.PinnedListsDeleteParams) (*types.PinnedListsDeleteResponse, error)
- func PinnedListsGet(ctx context.Context, c *gotwi.GotwiClient, p *types.PinnedListsGetParams) (*types.PinnedListsGetResponse, error)
- func PinnedListsPost(ctx context.Context, c *gotwi.GotwiClient, p *types.PinnedListsPostParams) (*types.PinnedListsPostResponse, error)
Constants ¶
const ( ListFollowsFollowersEndpoint = "https://api.twitter.com/2/lists/:id/followers" ListFollowsFollowedListsEndpoint = "https://api.twitter.com/2/users/:id/followed_lists" ListFollowsPostEndpoint = "https://api.twitter.com/2/users/:id/followed_lists" ListFollowsDeleteEndpoint = "https://api.twitter.com/2/users/:id/followed_lists/:list_id" )
const ( ListLookupIDEndpoint = "https://api.twitter.com/2/lists/:id" ListLookupOwnedListsEndpoint = "https://api.twitter.com/2/users/:id/owned_lists" )
const ( ListMembersListMembershipsEndpoint = "https://api.twitter.com/2/users/:id/list_memberships" ListMembersGetEndpoint = "https://api.twitter.com/2/lists/:id/members" ListMembersPostEndpoint = "https://api.twitter.com/2/lists/:id/members" ListMembersDeleteEndpoint = "https://api.twitter.com/2/lists/:id/members/:user_id" )
const ( ManageListsPostEndpoint = "https://api.twitter.com/2/lists" ManageListsPutEndpoint = "https://api.twitter.com/2/lists/:id" ManageListsDeleteEndpoint = "https://api.twitter.com/2/lists/:id" )
const ( PinnedListsGetEndpoint = "https://api.twitter.com/2/users/:id/pinned_lists" PinnedListsPostEndpoint = "https://api.twitter.com/2/users/:id/pinned_lists" PinnedListsDeleteEndpoint = "https://api.twitter.com/2/users/:id/pinned_lists/:list_id" )
const ListTweetsLookupEndpoint = "https://api.twitter.com/2/lists/:id/tweets"
Variables ¶
This section is empty.
Functions ¶
func ListFollowsDelete ¶
func ListFollowsDelete(ctx context.Context, c *gotwi.GotwiClient, p *types.ListFollowsDeleteParams) (*types.ListFollowsDeleteResponse, error)
Enables the authenticated user to unfollow a List. https://developer.twitter.com/en/docs/twitter-api/lists/manage-lists/api-reference/delete-users-id-followed-lists-list_id
func ListFollowsFollowedLists ¶
func ListFollowsFollowedLists(ctx context.Context, c *gotwi.GotwiClient, p *types.ListFollowsFollowedListsParams) (*types.ListFollowsFollowedListsResponse, error)
Returns all Lists a specified user follows. https://developer.twitter.com/en/docs/twitter-api/lists/list-follows/api-reference/get-users-id-followed_lists
func ListFollowsFollowers ¶
func ListFollowsFollowers(ctx context.Context, c *gotwi.GotwiClient, p *types.ListFollowsFollowersParams) (*types.ListFollowsFollowersResponse, error)
Returns a list of users who are followers of the specified List. https://developer.twitter.com/en/docs/twitter-api/lists/list-follows/api-reference/get-lists-id-followers
func ListFollowsPost ¶
func ListFollowsPost(ctx context.Context, c *gotwi.GotwiClient, p *types.ListFollowsPostParams) (*types.ListFollowsPostResponse, error)
Enables the authenticated user to follow a List. https://developer.twitter.com/en/docs/twitter-api/lists/manage-lists/api-reference/post-users-id-followed-lists
func ListLookupID ¶
func ListLookupID(ctx context.Context, c *gotwi.GotwiClient, p *types.ListLookupIDParams) (*types.ListLookupIDResponse, error)
Returns the details of a specified List. https://developer.twitter.com/en/docs/twitter-api/lists/list-lookup/api-reference/get-lists-id
func ListLookupOwnedLists ¶
func ListLookupOwnedLists(ctx context.Context, c *gotwi.GotwiClient, p *types.ListLookupOwnedListsParams) (*types.ListLookupOwnedListsResponse, error)
Returns all Lists owned by the specified user. https://developer.twitter.com/en/docs/twitter-api/lists/list-lookup/api-reference/get-users-id-owned_lists
func ListMembersDelete ¶
func ListMembersDelete(ctx context.Context, c *gotwi.GotwiClient, p *types.ListMembersDeleteParams) (*types.ListMembersDeleteResponse, error)
Enables the authenticated user to remove a member from a List they own. https://developer.twitter.com/en/docs/twitter-api/lists/manage-lists/api-reference/delete-lists-id-members-user_id
func ListMembersGet ¶
func ListMembersGet(ctx context.Context, c *gotwi.GotwiClient, p *types.ListMembersGetParams) (*types.ListMembersGetResponse, error)
Returns a list of users who are members of the specified List. https://developer.twitter.com/en/docs/twitter-api/lists/list-members/api-reference/get-lists-id-members
func ListMembersListMemberships ¶
func ListMembersListMemberships(ctx context.Context, c *gotwi.GotwiClient, p *types.ListMembersListMembershipsParams) (*types.ListMembersListMembershipsResponse, error)
Returns all Lists a specified user is a member of. https://developer.twitter.com/en/docs/twitter-api/lists/list-members/api-reference/get-users-id-list_memberships
func ListMembersPost ¶
func ListMembersPost(ctx context.Context, c *gotwi.GotwiClient, p *types.ListMembersPostParams) (*types.ListMembersPostResponse, error)
Enables the authenticated user to add a member to a List they own. https://developer.twitter.com/en/docs/twitter-api/lists/manage-lists/api-reference/post-lists-id-members
func ListTweetsLookup ¶
func ListTweetsLookup(ctx context.Context, c *gotwi.GotwiClient, p *types.ListTweetsLookupParams) (*types.ListTweetsLookupResponse, error)
Returns a list of Tweets from the specified List. https://developer.twitter.com/en/docs/twitter-api/lists/list-tweets/api-reference/get-lists-id-tweets
func ManageListsDelete ¶
func ManageListsDelete(ctx context.Context, c *gotwi.GotwiClient, p *types.ManageListsDeleteParams) (*types.ManageListsDeleteResponse, error)
Enables the authenticated user to delete a List that they own. https://developer.twitter.com/en/docs/twitter-api/lists/manage-lists/api-reference/delete-lists-id
func ManageListsPost ¶
func ManageListsPost(ctx context.Context, c *gotwi.GotwiClient, p *types.ManageListsPostParams) (*types.ManageListsPostResponse, error)
Enables the authenticated user to create a List. https://developer.twitter.com/en/docs/twitter-api/lists/manage-lists/api-reference/post-lists
func ManageListsPut ¶
func ManageListsPut(ctx context.Context, c *gotwi.GotwiClient, p *types.ManageListsPutParams) (*types.ManageListsPutResponse, error)
Enables the authenticated user to update the meta data of a specified List that they own. https://developer.twitter.com/en/docs/twitter-api/lists/manage-lists/api-reference/put-lists-id
func PinnedListsDelete ¶
func PinnedListsDelete(ctx context.Context, c *gotwi.GotwiClient, p *types.PinnedListsDeleteParams) (*types.PinnedListsDeleteResponse, error)
Enables the authenticated user to unpin a List. https://developer.twitter.com/en/docs/twitter-api/lists/manage-lists/api-reference/delete-users-id-pinned-lists-list_id
func PinnedListsGet ¶
func PinnedListsGet(ctx context.Context, c *gotwi.GotwiClient, p *types.PinnedListsGetParams) (*types.PinnedListsGetResponse, error)
Returns the Lists pinned by a specified user. https://developer.twitter.com/en/docs/twitter-api/lists/pinned-lists/api-reference/get-users-id-pinned_lists
func PinnedListsPost ¶
func PinnedListsPost(ctx context.Context, c *gotwi.GotwiClient, p *types.PinnedListsPostParams) (*types.PinnedListsPostResponse, error)
Enables the authenticated user to pin a List. https://developer.twitter.com/en/docs/twitter-api/lists/manage-lists/api-reference/post-users-id-pinned-lists
Types ¶
This section is empty.