public async Task <CursoredDisqusResponse <IEnumerable <DisqusUserBase> > > ListFollowersAsync( DisqusAccessToken accessToken, DisqusForumListFollowersRequest request) { Collection <KeyValuePair <string, string> > parameters = Parameters .WithOptionalParameter("access_token", accessToken) .WithMultipleParameters(request.Parameters); return(await RequestProcessor .ExecuteAsync <CursoredDisqusResponse <IEnumerable <DisqusUserBase> > >(DisqusRequestMethod.Get, DisqusEndpoints.Forums.ListFollowers, parameters) .ConfigureAwait(false)); }
public async Task ListFollowersAsync_Tests() { /* arrange */ var request = DisqusForumListFollowersRequest .New(TestData.Forum) .Limit(10) .Order(DisqusOrder.Asc) .SinceId(1); /* act */ var response = await Disqus.Forums .ListFollowersAsync(request) .ConfigureAwait(false); /* assert */ Assert.That(response, Is.Not.Null); Assert.That(response.Code, Is.EqualTo(DisqusApiResponseCode.Success)); Assert.That(response.Response, Is.Not.Null); }
public async Task <CursoredDisqusResponse <IEnumerable <DisqusUserBase> > > ListFollowersAsync(DisqusForumListFollowersRequest request) { return(await ListFollowersAsync(null, request).ConfigureAwait(false)); }