Skip to content

Fandom activities

NeoGames4 edited this page Jun 4, 2022 · 1 revision

This page is about working with Fandom activities like recent changes or discussion posts.

Recent changes

The library offers multiple ways to receive the most recent changes. It is recommended to use the FandomActivity.getRecentChanges(…)-method though. All of its parameters are nullable.

Print the 20 most recent changes

Fandom fandom = new Fandom("disney.fandom.com");
FandomRecentChange[] recentChanges = fandom.getActivity().getRecentChanges(20);
for(FandomRecentChange r : recentChanges) System.out.println("Recent change on " + r.title + " by " + r.user + ": " + r.comment);

Print recent changes of a specific user or page only

You can only receive recent changes by a specific user or a specific page as well: …

Forum / Wall / Article comment activities

Listeners