api

package
v0.0.0-...-a00f253 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateURLValues

func CreateURLValues(cnt string) url.Values

CreateURLValues クエリを作成

Types

type TwitterAPI

type TwitterAPI struct {
	API       *anaconda.TwitterApi
	OwnUser   *anaconda.User
	ListNames []string
	ListIDs   []int64
}

TwitterAPI API構造体

func NewTwitterAPI

func NewTwitterAPI() *TwitterAPI

NewTwitterAPI API構造体を作成

func (*TwitterAPI) Auth

func (tw *TwitterAPI) Auth() (string, string)

Auth 認証

func (*TwitterAPI) Block

func (tw *TwitterAPI) Block(screenname string) error

Block ブロックする

func (*TwitterAPI) DeleteTweet

func (tw *TwitterAPI) DeleteTweet(tweetID string) error

DeleteTweet ツイートを削除

func (*TwitterAPI) Favorite

func (tw *TwitterAPI) Favorite(tweetID string) error

Favorite いいねする

func (*TwitterAPI) Follow

func (tw *TwitterAPI) Follow(screenname string) error

Follow フォローする

func (*TwitterAPI) GetFriendships

func (tw *TwitterAPI) GetFriendships(u *anaconda.User) (string, error)

GetFriendships ユーザーとの関係を取得

func (*TwitterAPI) GetListTimeline

func (tw *TwitterAPI) GetListTimeline(listID int64, count string) (*[]anaconda.Tweet, error)

GetListTimeline リストタイムラインを取得

func (*TwitterAPI) GetSearchResult

func (tw *TwitterAPI) GetSearchResult(query, count string) (*[]anaconda.Tweet, error)

GetSearchResult 検索結果を取得

func (*TwitterAPI) GetTimeline

func (tw *TwitterAPI) GetTimeline(mode string, v url.Values) (*[]anaconda.Tweet, error)

GetTimeline タイムラインを取得

func (*TwitterAPI) Init

func (tw *TwitterAPI) Init(token, secret string) error

Init 初期化

func (*TwitterAPI) Mute

func (tw *TwitterAPI) Mute(screenname string) error

Mute ミュートする

func (*TwitterAPI) PostTweet

func (tw *TwitterAPI) PostTweet(status, replyToID string, files []string) error

PostTweet ツイートを投稿

func (*TwitterAPI) Retweet

func (tw *TwitterAPI) Retweet(tweetID string) error

Retweet リツイートする

func (*TwitterAPI) UnRetweet

func (tw *TwitterAPI) UnRetweet(tweetID string) error

UnRetweet リツイートを取り消す

func (*TwitterAPI) Unblock

func (tw *TwitterAPI) Unblock(screenname string) error

Unblock ブロックを解除する

func (*TwitterAPI) Unfavorite

func (tw *TwitterAPI) Unfavorite(tweetID string) error

Unfavorite いいねを取り消す

func (*TwitterAPI) Unfollow

func (tw *TwitterAPI) Unfollow(screenname string) error

Unfollow フォローを解除する

func (*TwitterAPI) Unmute

func (tw *TwitterAPI) Unmute(screenname string) error

Unmute ミュートを解除する

Jump to

Keyboard shortcuts

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