- Get forum details
var disqus = new DisqusApi(DisqusAuthMethod.SecretKey, <your_application_secret_key>);
var request = DisqusForumDetailsRequest
.New("disqus")
.Related(DisqusForumRelated.Author)
.Attach(DisqusForumAttach.ForumForumCategory | DisqusForumAttach.Counters);
var response = await disqus.Forums.DetailsAsync(request).ConfigureAwait(false);
- Get forum threads page by page using cursor
var disqus = new DisqusApi(DisqusAuthMethod.SecretKey, <your_application_secret_key>);
List<string> threads = new List<string>();
string cursor = null;
do
{
var request = DisqusForumListThreadsRequest
.New("disqus")
.Limit(100)
.Cursor(cursor)
.Include(DisqusThreadInclude.Open)
.Since(new DateTime(2016, 09, 01))
.Order(DisqusOrder.Asc);
var response = await disqus.Forums
.ListThreadsAsync(request)
.ConfigureAwait(false);
/* do something with threads */
foreach (var thread in response.Response)
{
threads.Add(thread.Id);
}
// if cursor has more then set cursor to next result
if (response.Cursor.More)
{
cursor = response.Cursor.Next;
}
else
{
cursor = null;
}
} while (cursor != null);
- More examples
See integration tests for examples of usage
Disqus.NET is available as Nuget-package
-
- listUsage [completed]
-
- add [completed]
backfillCounters- list [completed]
- remove [completed]
-
- create [completed]
- details [completed]
- list [completed]
- listPosts [completed]
- listThreads [completed]
-
- exportForum [completed]
-
- addModerator [completed]
- create [completed]
- details [completed]
- disableAds [completed]
fixFavIconsForClassifiedForums- follow [completed]
generateInterestingContent- interestingForums [completed]
- listCategories [completed]
- listFollowers [completed]
- listModerators [completed]
- listMostActiveUsers [completed]
- listMostLikedUsers [completed]
- listPosts [completed]
- listThreads [completed]
- listUsers [completed]
- removeDefaultAvatar [completed]
- removeModerator [completed]
- unfollow [completed]
- update [completed]
- updateDefaultAvatar
- validate [completed]
-
- addAdmin [completed]
- listAdmins [completed]
- removeAdmin [completed]
- setRole [completed]
-
- approve [completed]
- close [completed]
- create [completed]
- details [completed]
- list [completed]
- listHot [completed]
- listPopular [completed]
- listPosts [completed]
- listUsersVotedThread [completed]
- open [completed]
- remove [completed]
- restore [completed]
- set [completed]
- spam [completed]
- subscribe [completed]
- unsubscribe [completed]
- update [completed]
- vote [completed]
-
- listThreads [completed]
-
- checkUsername [completed]
- details [completed]
- follow [completed]
- interestingUsers [completed]
- listActiveForums [completed]
- listActivity [completed]
- listFollowers [completed]
- listFollowing [completed]
- listFollowingChannels
- listFollowingForums [completed]
- listForums [completed]
- listModeratedChannels
- listMostActiveForums [completed]
- listOwnedChannels
- listPosts [completed]
- removeFollower [completed]
- report [completed]
- unfollow [completed]
- updateProfile [completed]