Documentation
¶
Index ¶
Constants ¶
View Source
const URL = "https://api.twitter.com/1.1/"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Subscription ¶
type Subscription struct {
Id string `json:"user_id"`
}
type Tweet ¶
type Tweet struct {
Id string
FullText string
VisibleText string
VisibleTextOffset int
ParentTweetId string
Type TweetType
Mentions []Mention
User User
Media []Media
FallbackMedia []Media
QuoteTweet *Tweet
}
func (*Tweet) UnmarshalJSON ¶
type Twitter ¶
type Twitter interface {
GetWebhooks(ctx context.Context) ([]Webhook, structured_error.StructuredError)
CreateWebhook(ctx context.Context, url string) (Webhook, structured_error.StructuredError)
DeleteWebhook(ctx context.Context, webhookID string) structured_error.StructuredError
GetSubscriptions(ctx context.Context) ([]Subscription, structured_error.StructuredError)
DeleteSubscription(ctx context.Context, subscriptionID string) structured_error.StructuredError
AddSubscription(ctx context.Context) structured_error.StructuredError
GetTweetRaw(ctx context.Context, tweetID string) (*http.Response, structured_error.StructuredError)
GetTweet(ctx context.Context, tweetID string) (*Tweet, structured_error.StructuredError)
TweetReply(ctx context.Context, parentTweet *Tweet, message string) (*Tweet, structured_error.StructuredError)
UserTimeline(ctx context.Context, screenName string, tweetID string) ([]*Tweet, structured_error.StructuredError)
}
Click to show internal directories.
Click to hide internal directories.