Documentation ¶
Index ¶
- func CreateCRCToken(crcToken, consumerSecret string) string
- type AccountActivityEvent
- type AppUser
- type Apps
- type CRCRequest
- type CRCResponse
- type DirectMessageEvent
- type DirectMessageIndicateTypingEvent
- type DirectMessageMarkReadEvent
- type Entities
- type EventName
- type EventType
- type FavoriteEvent
- type MessageCreate
- type MessageData
- type Revoke
- type SourceApp
- type TweetDeleteEvent
- type UserEvent
- type UserRelationEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCRCToken ¶
Types ¶
type AccountActivityEvent ¶
type AccountActivityEvent struct { ForUserId string `json:"for_user_id"` TweetCreateEvents []*anaconda.Tweet `json:"tweet_create_events"` FavoriteEvents []*FavoriteEvent `json:"favorite_events"` FollowEvents []*UserRelationEvent `json:"follow_events"` BlockEvents []*UserRelationEvent `json:"block_events"` MuteEvents []*UserRelationEvent `json:"mute_events"` UserEvent *UserEvent `json:"user_event"` DirectMessageEvents []*DirectMessageEvent `json:"direct_message_events"` DirectMessageIndicateTypingEvents []*DirectMessageIndicateTypingEvent `json:"direct_message_indicate_typing_events"` DirectMessageMarkReadEvents []*DirectMessageMarkReadEvent `json:"direct_message_mark_read_events"` TweetDeleteEvents []*TweetDeleteEvent `json:"tweet_delete_events"` Apps map[string]interface{} Users map[string]interface{} }
func (*AccountActivityEvent) GetApps ¶
func (a *AccountActivityEvent) GetApps() (*Apps, error)
func (*AccountActivityEvent) GetEventName ¶
func (a *AccountActivityEvent) GetEventName() EventName
func (*AccountActivityEvent) GetUsers ¶
func (a *AccountActivityEvent) GetUsers() (users []*AppUser, err error)
type AppUser ¶
type AppUser struct { Id string `mapstructure:"id"` CreatedTimestamp string `mapstructure:"created_timestamp"` Name string `mapstructure:"name"` ScreenName string `mapstructure:"screen_name"` Location string `mapstructure:"location"` Description string `mapstructure:"description"` URL string `mapstructure:"url"` Protected bool `mapstructure:"protected"` Verified bool `mapstructure:"verified"` FollowersCount int `mapstructure:"followers_count"` FriendsCount int `mapstructure:"friends_count"` StatusesCount int `mapstructure:"statuses_count"` ProfileImageURL string `mapstructure:"profile_image_url"` ProfileImageURLHTTPS string `mapstructure:"profile_image_url_https"` }
type CRCRequest ¶
type CRCRequest struct {
CRCToken string `query:"crc_token" mapstructure:"crc_token"`
}
type CRCResponse ¶
type CRCResponse struct {
ResponseToken string `json:"response_token"`
}
type DirectMessageEvent ¶
type DirectMessageEvent struct { Type EventType `json:"type"` Id string `json:"id"` CreatedTimestamp string `json:"created_timestamp"` MessageCreate *MessageCreate `json:"message_create"` }
type Entities ¶
type Entities struct { Symbols []interface{} `json:"symbols"` UserMentions []interface{} `json:"user_mentions"` Urls []interface{} `json:"urls"` }
type EventName ¶
type EventName string
const ( TweetCreateEventsEventName EventName = "tweet_create_events" FavoriteEventsEventName EventName = "favorite_events" FollowEventsEventName EventName = "follow_events" BlockEventsEventName EventName = "block_events" MuteEventsEventName EventName = "mute_events" UserEventEventName EventName = "user_event" DirectMessageEventsEventName EventName = "direct_message_events" DirectMessageIndicateTypingEventsEventName EventName = "direct_message_indicate_typing_events" DirectMessageMarkReadEventsEventName EventName = "direct_message_mark_read_events" TweetDeleteEventsEventName EventName = "tweet_delete_events" )
type FavoriteEvent ¶
type MessageCreate ¶
type MessageCreate struct { Target struct { RecipientId string `json:"recipient_id"` } `json:"target"` SenderId string `json:"sender_id"` SourceAppId string `json:"source_app_id"` MessageData MessageData `json:"message_data"` }
type MessageData ¶
type TweetDeleteEvent ¶
Click to show internal directories.
Click to hide internal directories.