4

I have installed a media wiki (www.mediawiki.org) on my server and need to create Wiki pages automatically using c#.

Does anyone know how to programmatically create Media Wiki pages using C#.

Many thanks,

DafaDil
  • 2,463
  • 6
  • 23
  • 33

2 Answers2

3

Yep, take a look at this page: http://www.mediawiki.org/wiki/API:Client_code

animaonline
  • 3,715
  • 5
  • 30
  • 57
2

You have two C# wrappers for media wiki API:

http://sourceforge.net/projects/wikiaccess/

http://dotnetwikibot.sourceforge.net/

the later can insert and modify pages, for first one I am not sure but check

Antonio Bakula
  • 20,445
  • 6
  • 75
  • 102
  • When I used the command Site enWiki = new Site("http://en.wikipedia.org", "myBotLogin", "myPassword"); Is the myBotLogin the username for the Wiki? when I tried this I got the error 'Access to the path 'Cache' is denied' – DafaDil May 10 '12 at 14:59
  • you should get username / password from Wikipedia, and maybe Wikipedia restricted API access, don't know, google it :) – Antonio Bakula May 10 '12 at 15:03