C# Класс BoxKite.Twitter.TweetExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
DeleteTweet ( this session, string tweetId ) : Task

Deletes tweet of a given id

ref: https://dev.twitter.com/docs/api/1.1/post/statuses/destroy/%3Aid

GetRetweeters ( this session, long tweetId, int count = 20, long cursor = -1 ) : Task

Gets the Users who retweeted a particular tweet

ref: https://dev.twitter.com/docs/api/1.1/get/statuses/retweeters/ids

GetRetweets ( this session, Tweet tweet, int count = 20 ) : Task>

Gets the Retweets of a particular tweet

ref: https://dev.twitter.com/docs/api/1.1/get/statuses/retweets/%3Aid

GetRetweets ( this session, long tweetId, int count = 20 ) : Task>

Gets the Retweets of a particular tweet

ref: https://dev.twitter.com/docs/api/1.1/get/statuses/retweets/%3Aid

GetTweet ( this session, long tweetId ) : Task

Gets a particular Tweet

ref: https://dev.twitter.com/docs/api/1.1/get/statuses/show/%3Aid

GetTweetsFull ( this session, IEnumerable tweetIds = null ) : Task>

Returns fully-hydrated tweets for up to 100 tweets per request, as specified by comma-separated values passed to the user_id and/or screen_name parameters.

ref: https://dev.twitter.com/docs/api/1.1/get/statuses/lookup

ReplyToTweet ( this session, Tweet tweet, string text, double latitude = 0.0, double longitude = 0.0, string placeId = "" ) : Task

Sends a Tweet in reply to another tweet

ref: https://dev.twitter.com/docs/api/1.1/post/statuses/update

ReplyToTweetWithImage ( this session, Tweet tweet, string text, string fileName, Stream imageDataStream, double latitude = 0.0, double longitude = 0.0, string placeId = "" ) : Task

Sends a Tweet in reply to another tweet

ref: https://dev.twitter.com/docs/api/1.1/post/statuses/update_with_media

ReplyToTweetWithImage ( this session, Tweet tweet, string text, string fileName, byte imageData, double latitude = 0.0, double longitude = 0.0, string placeId = "" ) : Task

Sends a Tweet in reply to another tweet

ref: https://dev.twitter.com/docs/api/1.1/post/statuses/update_with_media

Retweet ( this session, Tweet tweet ) : Task

Retweets a tweet

ref: https://dev.twitter.com/docs/api/1.1/post/statuses/retweet/%3Aid

SendTweet ( this session, string text, double latitude = 0.0, double longitude = 0.0, string placeId = "" ) : Task

Sends a Tweet

ref: https://dev.twitter.com/docs/api/1.1/post/statuses/update

SendTweetWithImage ( this session, string text, string fileName, Stream imageDataStream, double latitude = 0.0, double longitude = 0.0, string placeId = "" ) : Task

Sends a Tweet, with status text, with attached image

ref: https://dev.twitter.com/docs/api/1.1/post/statuses/update_with_media

SendTweetWithImage ( this session, string text, string fileName, byte imageData, double latitude = 0.0, double longitude = 0.0, string placeId = "" ) : Task

Sends a Tweet, with status text, with attached image

ref: https://dev.twitter.com/docs/api/1.1/post/statuses/update_with_media

Описание методов

DeleteTweet() публичный статический Метод

Deletes tweet of a given id
ref: https://dev.twitter.com/docs/api/1.1/post/statuses/destroy/%3Aid
public static DeleteTweet ( this session, string tweetId ) : Task
session this
tweetId string ID of the tweet to delete
Результат Task

GetRetweeters() публичный статический Метод

Gets the Users who retweeted a particular tweet
ref: https://dev.twitter.com/docs/api/1.1/get/statuses/retweeters/ids
public static GetRetweeters ( this session, long tweetId, int count = 20, long cursor = -1 ) : Task
session this
tweetId long tweet ID must be provided
count int how many to return default 500
cursor long default is first page (-1) otherwise provide starting point
Результат Task

GetRetweets() публичный статический Метод

Gets the Retweets of a particular tweet
ref: https://dev.twitter.com/docs/api/1.1/get/statuses/retweets/%3Aid
public static GetRetweets ( this session, Tweet tweet, int count = 20 ) : Task>
session this
tweet BoxKite.Twitter.Models.Tweet
count int
Результат Task>

GetRetweets() публичный статический Метод

Gets the Retweets of a particular tweet
ref: https://dev.twitter.com/docs/api/1.1/get/statuses/retweets/%3Aid
public static GetRetweets ( this session, long tweetId, int count = 20 ) : Task>
session this
tweetId long
count int
Результат Task>

GetTweet() публичный статический Метод

Gets a particular Tweet
ref: https://dev.twitter.com/docs/api/1.1/get/statuses/show/%3Aid
public static GetTweet ( this session, long tweetId ) : Task
session this
tweetId long The tweet ID to return
Результат Task

GetTweetsFull() публичный статический Метод

Returns fully-hydrated tweets for up to 100 tweets per request, as specified by comma-separated values passed to the user_id and/or screen_name parameters.
ref: https://dev.twitter.com/docs/api/1.1/get/statuses/lookup
public static GetTweetsFull ( this session, IEnumerable tweetIds = null ) : Task>
session this
tweetIds IEnumerable up to 100 are allowed in a single request.
Результат Task>

ReplyToTweet() публичный статический Метод

Sends a Tweet in reply to another tweet
ref: https://dev.twitter.com/docs/api/1.1/post/statuses/update
public static ReplyToTweet ( this session, Tweet tweet, string text, double latitude = 0.0, double longitude = 0.0, string placeId = "" ) : Task
session this
tweet BoxKite.Twitter.Models.Tweet Tweet replying to
text string Text of the reply
latitude double Latitude
longitude double Longitude
placeId string A place in the world identified by a Twitter place ID. Place IDs can be retrieved from geo/reverse_geocode.
Результат Task

ReplyToTweetWithImage() публичный статический Метод

Sends a Tweet in reply to another tweet
ref: https://dev.twitter.com/docs/api/1.1/post/statuses/update_with_media
public static ReplyToTweetWithImage ( this session, Tweet tweet, string text, string fileName, Stream imageDataStream, double latitude = 0.0, double longitude = 0.0, string placeId = "" ) : Task
session this
tweet BoxKite.Twitter.Models.Tweet Text to send
text string Text of tweet to send
fileName string Name of the file, including extension
imageDataStream Stream Stream containing the image
latitude double Latitude
longitude double Longitude
placeId string A place in the world identified by a Twitter place ID. Place IDs can be retrieved from geo/reverse_geocode.
Результат Task

ReplyToTweetWithImage() публичный статический Метод

Sends a Tweet in reply to another tweet
ref: https://dev.twitter.com/docs/api/1.1/post/statuses/update_with_media
public static ReplyToTweetWithImage ( this session, Tweet tweet, string text, string fileName, byte imageData, double latitude = 0.0, double longitude = 0.0, string placeId = "" ) : Task
session this
tweet BoxKite.Twitter.Models.Tweet Text to send
text string Text of tweet to send
fileName string Name of the file, including extension
imageData byte the image data as a byte array
latitude double Latitude
longitude double Longitude
placeId string A place in the world identified by a Twitter place ID. Place IDs can be retrieved from geo/reverse_geocode.
Результат Task

Retweet() публичный статический Метод

Retweets a tweet
ref: https://dev.twitter.com/docs/api/1.1/post/statuses/retweet/%3Aid
public static Retweet ( this session, Tweet tweet ) : Task
session this
tweet BoxKite.Twitter.Models.Tweet The tweet to retweet
Результат Task

SendTweet() публичный статический Метод

Sends a Tweet
ref: https://dev.twitter.com/docs/api/1.1/post/statuses/update
public static SendTweet ( this session, string text, double latitude = 0.0, double longitude = 0.0, string placeId = "" ) : Task
session this
text string Text of tweet to send
latitude double Latitude of sender
longitude double Longotide of sender
placeId string A place in the world identified by a Twitter place ID. Place IDs can be retrieved from geo/reverse_geocode.
Результат Task

SendTweetWithImage() публичный статический Метод

Sends a Tweet, with status text, with attached image
ref: https://dev.twitter.com/docs/api/1.1/post/statuses/update_with_media
public static SendTweetWithImage ( this session, string text, string fileName, Stream imageDataStream, double latitude = 0.0, double longitude = 0.0, string placeId = "" ) : Task
session this
text string Text of tweet to send
fileName string Name of the file, including extension
imageDataStream Stream Stream of the image
latitude double Latitude of the image
longitude double Longitude of the image
placeId string A place in the world identified by a Twitter place ID. Place IDs can be retrieved from geo/reverse_geocode.
Результат Task

SendTweetWithImage() публичный статический Метод

Sends a Tweet, with status text, with attached image
ref: https://dev.twitter.com/docs/api/1.1/post/statuses/update_with_media
public static SendTweetWithImage ( this session, string text, string fileName, byte imageData, double latitude = 0.0, double longitude = 0.0, string placeId = "" ) : Task
session this
text string Text of tweet to send
fileName string Name of the file, including extension
imageData byte the image data as a byte array
latitude double
longitude double
placeId string A place in the world identified by a Twitter place ID. Place IDs can be retrieved from geo/reverse_geocode.
Результат Task