Documentation ¶
Index ¶
- type AutobaseGateway
- func (g *AutobaseGateway) DeleteMessage(messageID string) error
- func (g *AutobaseGateway) DownloadMedia(url string, mediaType string) ([]byte, error)
- func (g *AutobaseGateway) GetCurrentUserInfo() (twitter.User, error)
- func (g *AutobaseGateway) GetUserInfoByID(userID string) (twitter.User, error)
- func (g *AutobaseGateway) ReadBatchMessage(count int) ([]twitter.DirectMessageEvent, error)
- func (g *AutobaseGateway) ReadMessage(messageID string) (twitter.DirectMessageEvent, error)
- func (g *AutobaseGateway) SendMessage(params twitter.DirectMessageEventMessage) error
- func (g *AutobaseGateway) Tweet(text string, params *twitter.StatusUpdateParams) (twitter.Tweet, error)
- func (g *AutobaseGateway) UploadMedia(file []byte, mimetype string) (media.Media, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutobaseGateway ¶
type AutobaseGateway struct {
// contains filtered or unexported fields
}
func NewAutobaseGateway ¶
func NewAutobaseGateway(cfg config.TwitterKey) *AutobaseGateway
func (*AutobaseGateway) DeleteMessage ¶
func (g *AutobaseGateway) DeleteMessage(messageID string) error
func (*AutobaseGateway) DownloadMedia ¶
func (g *AutobaseGateway) DownloadMedia(url string, mediaType string) ([]byte, error)
func (*AutobaseGateway) GetCurrentUserInfo ¶
func (g *AutobaseGateway) GetCurrentUserInfo() (twitter.User, error)
func (*AutobaseGateway) GetUserInfoByID ¶
func (g *AutobaseGateway) GetUserInfoByID(userID string) (twitter.User, error)
func (*AutobaseGateway) ReadBatchMessage ¶
func (g *AutobaseGateway) ReadBatchMessage(count int) ([]twitter.DirectMessageEvent, error)
func (*AutobaseGateway) ReadMessage ¶
func (g *AutobaseGateway) ReadMessage(messageID string) (twitter.DirectMessageEvent, error)
func (*AutobaseGateway) SendMessage ¶
func (g *AutobaseGateway) SendMessage(params twitter.DirectMessageEventMessage) error
func (*AutobaseGateway) Tweet ¶
func (g *AutobaseGateway) Tweet(text string, params *twitter.StatusUpdateParams) (twitter.Tweet, error)
func (*AutobaseGateway) UploadMedia ¶
Click to show internal directories.
Click to hide internal directories.