public virtual IAsyncResult BeginFollowList(FollowListOptions options) { var owner_screen_name = options.OwnerScreenName; var owner_id = options.OwnerId; var list_id = options.ListId; var slug = options.Slug; return BeginWithHammock<TwitterUser>(WebMethod.Post, "lists/subscribers/create", FormatAsString, "?owner_screen_name=", owner_screen_name, "&owner_id=", owner_id, "&list_id=", list_id, "&slug=", slug); }
public virtual void FollowList(FollowListOptions options, Action<TwitterUser, TwitterResponse> action) { var owner_screen_name = options.OwnerScreenName; var owner_id = options.OwnerId; var list_id = options.ListId; var slug = options.Slug; WithHammock(WebMethod.Post, action, "lists/subscribers/create", FormatAsString, "?owner_screen_name=", owner_screen_name, "&owner_id=", owner_id, "&list_id=", list_id, "&slug=", slug); }
public virtual Task<TwitterResponse<TwitterUser>> FollowListAsync(FollowListOptions options) { var owner_screen_name = options.OwnerScreenName; var owner_id = options.OwnerId; var list_id = options.ListId; var slug = options.Slug; return ExecuteRequest<TwitterUser>(HttpMethod.Post, "lists/subscribers/create", FormatAsString, "?owner_screen_name=", owner_screen_name, "&owner_id=", owner_id, "&list_id=", list_id, "&slug=", slug); }