Menu

Viewing history

Help
Windom
2011-11-01
2013-05-13
  • Windom

    Windom - 2011-11-01

    How can I get list of all article versions (history) with their revision IDs? Thanks in advance!

     
  • CodeDriller

    CodeDriller - 2011-11-01

    There are 2 functions to do this: FillFromPageHistory() and FillFromPageHistoryEx()

    Site mySite = new Site("http://www.mysite.com", "UserName", "UserPassword");
    PageList pl = new PageList(mySite);
    pl.FillFromPageHistory("PageName", 50);
      // now revision IDs are in pl[0].lastRevisionID, pl[1].lastRevisionID, etc.
    pl.Load(); // load texts, if you need it
    
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.