BoxKite.Twitter.TweetExtensions.DeleteTweet C# (CSharp) Метод

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
        public async static Task<TwitterSuccess> DeleteTweet(this IUserSession session, string tweetId)
        {
            var parameters = new TwitterParametersCollection();
            var url = TwitterApi.Resolve("/1.1/statuses/destroy/{0}.json", tweetId); 
            return await session.PostAsync(url, parameters)
                          .ContinueWith(c => c.MapToTwitterSuccess());
        }