C# Class Twitter4CS.Rest.TwitterApi

显示文件 Open project: nk0t/Twitter4CS

Public Properties

Property Type Description
TwitterApiUrl string

Public Methods

Method Description
Block ( this oauth, string screenName ) : User

指定したScreenNameのユーザーをブロックします

DestroyDirectMessage ( this oauth, long messageId ) : DirectMessage

指定したMessageIdのダイレクトメッセージを削除します

DestroyStatus ( this oauth, long statusId ) : Status

指定したStatusIdのステータスを削除します

Favorite ( this oauth, long statusId ) : Status

指定したStatusIdからツイートをお気に入りに追加します

Follow ( this oauth, string screenName ) : User

指定したScreenNameのユーザーをフォローします

GetBlockingIDs ( this oauth, long cursor = -1 ) : IDs

指定したユーザーがフォローしているユーザーのIDを5000件まで取得します

cursorは-1から始まり、取得しきれなかった場合は次のcursorが与えられます

GetFollowerIDs ( this oauth, string screenName, long cursor = -1 ) : IDs

指定したユーザーをフォローしているユーザーのIDを5000件まで取得します

cursorは-1から始まり、取得しきれなかった場合は次のcursorが与えられます

GetFriendIDs ( this oauth, string screenName, long cursor = -1 ) : IDs

指定したユーザーがフォローしているユーザーのIDを5000件まで取得します

cursorは-1から始まり、取得しきれなかった場合は次のcursorが与えられます

GetFriendships ( this oauth, string targetScreenNames ) : Friendship[]

指定したユーザーと自分との簡単な関係を取得します

詳細な関係が知りたければGetRelationshipを使用してください

GetHomeTimeline ( this oauth, int count = 200, int sinceId = -1, int maxId = -1 ) : Status[]

自分のタイムラインを取得します

GetMentionsTimeline ( this oauth, int count = 200, int sinceId = -1, int maxId = -1 ) : Status[]

Mentionsを取得します

GetOwnUser ( this oauth ) : User

自分自身のUserオブジェクトを取得します

GetRecievedDirectMessages ( this oauth, int count = 20, int page = 1, int sinceId = -1, int maxId = -1 ) : DirectMessage[]

受信したダイレクトメッセージを取得します

GetRelationship ( this oauth, string sourceScreenName, string targetScreenName ) : Relationship

指定したユーザー間の関係を取得します

GetSentDirectMessages ( this oauth, int count = 20, int page = 1, int sinceId = -1, int maxId = -1 ) : DirectMessage[]

送信したダイレクトメッセージを取得します

GetStatus ( this oauth, long statusId ) : Status

指定したStatusIdのステータスを取得します

GetUser ( this oauth, long userId ) : User

指定したUserIDからユーザーを取得します

GetUser ( this oauth, string screenName ) : User

指定したScreenNameからユーザーを取得します

GetUserTimeline ( this oauth, string screenName = null, int count = 200, int sinceId = -1, int maxId = -1, bool includeRts = false ) : Status[]

指定したScreenNameのユーザーの発言を取得します

指定しなければ自分の発言を取得します

GetUsers ( this oauth, long userId ) : User[]

指定した複数のUserIDから最大100件までユーザーを取得します

GetUsers ( this oauth, string screenNames ) : User[]

指定した複数のScreenNameから最大100件までユーザーを取得します

Remove ( this oauth, string screenName ) : User

指定したScreenNameのユーザーへのフォローを解除します

ReportSpam ( this oauth, string screenName ) : User

指定したScreenNameのユーザーをスパム報告します

Retweet ( this oauth, long statusId ) : Status

指定したStatusIdからツイートをリツイートします

Search ( this oauth, string query, ICollection &resultStatuses, SearchProperties prop = null ) : SearchResult

指定した文字列でツイートを検索します

SendDirectMessage ( this oauth, long userId, string text ) : DirectMessage

指定したUserIdのユーザーにダイレクトメッセージを送信します

SendDirectMessage ( this oauth, string screenName, string text ) : DirectMessage

指定したScreenNameのユーザーにダイレクトメッセージを送信します

UnFavorite ( this oauth, long statusId ) : Status

指定したStatusIdからツイートをお気に入りから削除します

Unblock ( this oauth, string screenName ) : User

指定したScreenNameのユーザーへのブロックを解除します

UpdateStatus ( this oauth, string text, long inReplyTo = null ) : Status

ツイートを投稿します

Method Details

Block() public static method

指定したScreenNameのユーザーをブロックします
public static Block ( this oauth, string screenName ) : User
oauth this
screenName string
return User

DestroyDirectMessage() public static method

指定したMessageIdのダイレクトメッセージを削除します
public static DestroyDirectMessage ( this oauth, long messageId ) : DirectMessage
oauth this
messageId long
return DirectMessage

DestroyStatus() public static method

指定したStatusIdのステータスを削除します
public static DestroyStatus ( this oauth, long statusId ) : Status
oauth this
statusId long
return Status

Favorite() public static method

指定したStatusIdからツイートをお気に入りに追加します
public static Favorite ( this oauth, long statusId ) : Status
oauth this
statusId long
return Status

Follow() public static method

指定したScreenNameのユーザーをフォローします
public static Follow ( this oauth, string screenName ) : User
oauth this
screenName string
return User

GetBlockingIDs() public static method

指定したユーザーがフォローしているユーザーのIDを5000件まで取得します

cursorは-1から始まり、取得しきれなかった場合は次のcursorが与えられます

public static GetBlockingIDs ( this oauth, long cursor = -1 ) : IDs
oauth this
cursor long
return IDs

GetFollowerIDs() public static method

指定したユーザーをフォローしているユーザーのIDを5000件まで取得します

cursorは-1から始まり、取得しきれなかった場合は次のcursorが与えられます

public static GetFollowerIDs ( this oauth, string screenName, long cursor = -1 ) : IDs
oauth this
screenName string
cursor long
return IDs

GetFriendIDs() public static method

指定したユーザーがフォローしているユーザーのIDを5000件まで取得します

cursorは-1から始まり、取得しきれなかった場合は次のcursorが与えられます

public static GetFriendIDs ( this oauth, string screenName, long cursor = -1 ) : IDs
oauth this
screenName string
cursor long
return IDs

GetFriendships() public static method

指定したユーザーと自分との簡単な関係を取得します

詳細な関係が知りたければGetRelationshipを使用してください

public static GetFriendships ( this oauth, string targetScreenNames ) : Friendship[]
oauth this
targetScreenNames string
return Friendship[]

GetHomeTimeline() public static method

自分のタイムラインを取得します
public static GetHomeTimeline ( this oauth, int count = 200, int sinceId = -1, int maxId = -1 ) : Status[]
oauth this
count int
sinceId int
maxId int
return Status[]

GetMentionsTimeline() public static method

Mentionsを取得します
public static GetMentionsTimeline ( this oauth, int count = 200, int sinceId = -1, int maxId = -1 ) : Status[]
oauth this
count int
sinceId int
maxId int
return Status[]

GetOwnUser() public static method

自分自身のUserオブジェクトを取得します
public static GetOwnUser ( this oauth ) : User
oauth this
return User

GetRecievedDirectMessages() public static method

受信したダイレクトメッセージを取得します
public static GetRecievedDirectMessages ( this oauth, int count = 20, int page = 1, int sinceId = -1, int maxId = -1 ) : DirectMessage[]
oauth this
count int
page int
sinceId int
maxId int
return DirectMessage[]

GetRelationship() public static method

指定したユーザー間の関係を取得します
public static GetRelationship ( this oauth, string sourceScreenName, string targetScreenName ) : Relationship
oauth this
sourceScreenName string
targetScreenName string
return Relationship

GetSentDirectMessages() public static method

送信したダイレクトメッセージを取得します
public static GetSentDirectMessages ( this oauth, int count = 20, int page = 1, int sinceId = -1, int maxId = -1 ) : DirectMessage[]
oauth this
count int
page int
sinceId int
maxId int
return DirectMessage[]

GetStatus() public static method

指定したStatusIdのステータスを取得します
public static GetStatus ( this oauth, long statusId ) : Status
oauth this
statusId long
return Status

GetUser() public static method

指定したUserIDからユーザーを取得します
public static GetUser ( this oauth, long userId ) : User
oauth this
userId long
return User

GetUser() public static method

指定したScreenNameからユーザーを取得します
public static GetUser ( this oauth, string screenName ) : User
oauth this
screenName string
return User

GetUserTimeline() public static method

指定したScreenNameのユーザーの発言を取得します

指定しなければ自分の発言を取得します

public static GetUserTimeline ( this oauth, string screenName = null, int count = 200, int sinceId = -1, int maxId = -1, bool includeRts = false ) : Status[]
oauth this
screenName string
count int
sinceId int
maxId int
includeRts bool
return Status[]

GetUsers() public static method

指定した複数のUserIDから最大100件までユーザーを取得します
public static GetUsers ( this oauth, long userId ) : User[]
oauth this
userId long
return User[]

GetUsers() public static method

指定した複数のScreenNameから最大100件までユーザーを取得します
public static GetUsers ( this oauth, string screenNames ) : User[]
oauth this
screenNames string
return User[]

Remove() public static method

指定したScreenNameのユーザーへのフォローを解除します
public static Remove ( this oauth, string screenName ) : User
oauth this
screenName string
return User

ReportSpam() public static method

指定したScreenNameのユーザーをスパム報告します
public static ReportSpam ( this oauth, string screenName ) : User
oauth this
screenName string
return User

Retweet() public static method

指定したStatusIdからツイートをリツイートします
public static Retweet ( this oauth, long statusId ) : Status
oauth this
statusId long
return Status

Search() public static method

指定した文字列でツイートを検索します
public static Search ( this oauth, string query, ICollection &resultStatuses, SearchProperties prop = null ) : SearchResult
oauth this
query string 検索したい文字列
resultStatuses ICollection 検索結果を格納するコレクション
prop SearchProperties 検索条件を定義したSearchPropertiesオブジェクト
return SearchResult

SendDirectMessage() public static method

指定したUserIdのユーザーにダイレクトメッセージを送信します
public static SendDirectMessage ( this oauth, long userId, string text ) : DirectMessage
oauth this
userId long
text string
return DirectMessage

SendDirectMessage() public static method

指定したScreenNameのユーザーにダイレクトメッセージを送信します
public static SendDirectMessage ( this oauth, string screenName, string text ) : DirectMessage
oauth this
screenName string
text string
return DirectMessage

UnFavorite() public static method

指定したStatusIdからツイートをお気に入りから削除します
public static UnFavorite ( this oauth, long statusId ) : Status
oauth this
statusId long
return Status

Unblock() public static method

指定したScreenNameのユーザーへのブロックを解除します
public static Unblock ( this oauth, string screenName ) : User
oauth this
screenName string
return User

UpdateStatus() public static method

ツイートを投稿します
public static UpdateStatus ( this oauth, string text, long inReplyTo = null ) : Status
oauth this
text string 投稿する文字列
inReplyTo long リプライ先のStatusId
return Status

Property Details

TwitterApiUrl public_oe static_oe property

public static string TwitterApiUrl
return string