Example #1
0
 public static async Task <IApiResult <TwitterStatus> > RetweetAsync(
     [NotNull] this IApiAccessor accessor, long id,
     CancellationToken cancellationToken)
 {
     if (accessor == null)
     {
         throw new ArgumentNullException(nameof(accessor));
     }
     return(await accessor.PostAsync("statuses/retweet/" + id + ".json",
                                     ParameterHelper.CreateEmpty().SetExtended(),
                                     ResultHandlers.ReadAsStatusAsync, cancellationToken).ConfigureAwait(false));
 }