service

package
v0.0.0-...-2b93282 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteTweet

func DeleteTweet(accessToken, tweetID string) (bool, error)

DeleteTweet deletes a tweet

func GetAuthenticatedTwitter

func GetAuthenticatedTwitter(accessToken string) ([]byte, error)

GetAuthenticatedUser gets the authenticated user from twitter

func GetTweet

func GetTweet(accessToken, tweetID string) ([]byte, error)

GetTweet gets a tweet

func GetTweetEmbed

func GetTweetEmbed(username, tweetID string) ([]byte, error)

GetTweetEmbed gets a tweet embed

func GetTwitterAccessToken

func GetTwitterAccessToken(code string) ([]byte, error)

GetAccessToken gets the access token from twitter

func IsAlive

func IsAlive(accessToken, replyID string) (bool, error)

IsAlive verifies if a tweet is alive

func IsLiking

func IsLiking(accessToken, userID, tweetID, cursor string) (bool, error)

IsLiking verifies if a user is liking a tweet

func IsReplying

func IsReplying(accessToken, userID, replyID string) (bool, error)

IsReplying verifies if a user is replying to a tweet

func IsRetweeting

func IsRetweeting(accessToken, userID, tweetID, cursor string) (bool, error)

IsRetweeting verifies if a user is retweeting a tweet

func LikeTweet

func LikeTweet(accessToken, userID, tweetID string) ([]byte, error)

LikeTweet likes a tweet

func ListLikes

func ListLikes(accessToken, tweetID, limit, cursor string) ([]byte, error)

ListLikes lists likes of a specific tweet

func ListRetweets

func ListRetweets(accessToken, tweetID, limit, cursor string) ([]byte, error)

ListRetweets lists retweets of a specific tweet

func ListTweets

func ListTweets(accessToken, userID, limit, cursor string) ([]byte, error)

ListTweets lists tweets from twitter

func Mentions

func Mentions(accessToken, userID, limit, cursor string) ([]byte, error)

Mentions gets all mentions to a user

func Message

func Message(accessToken, userID, text string) ([]byte, error)

Message sends a message to a user

func RefreshTwitterAccessToken

func RefreshTwitterAccessToken(refreshToken string) ([]byte, error)

RefreshTwitterAccessToken refreshes the access token from twitter

func RetriveReplies

func RetriveReplies(accessToken, userID, tweetID string, giveawayid primitive.ObjectID) ([]typing.Reply, error)

RetriveReplies gets all replies to a tweet

func Retweet

func Retweet(accessToken, userID, tweetID string) ([]byte, error)

Retweet retweets a tweet

func Tweet

func Tweet(accessToken, message, replyTo, quote string) ([]byte, error)

Tweet tweets a message to twitter

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL