Thanks for the link Siebrand. It looks like 1.13 will have significant improvements to the API. I noticed an entry for deleting images but didn't see any entries relating to image upload. Are there plans to add image upload soon or is that a little lower on the list?
You could always use a script which uses the api but also has support for uploading such as mine (low level api access for perl)
http://search.cpan.org/~exobuzz/MediaWiki-API-0.08/
If you wanted to do it in another language, just look at the very simple upload function noting that you need to be logged in on wikipedia to upload (which can be done with the api).
Best Regards
Jools
On Jul 10, 2008, at 6:53 AM, Jools Smyth wrote:
Thanks for the link Siebrand. It looks like 1.13 will have significant improvements to the API. I noticed an entry for deleting images but didn't see any entries relating to image upload. Are there plans to add image upload soon or is that a little lower on the list?
You could always use a script which uses the api but also has support for uploading such as mine (low level api access for perl)
http://search.cpan.org/~exobuzz/MediaWiki-API-0.08/
If you wanted to do it in another language, just look at the very simple upload function noting that you need to be logged in on wikipedia to upload (which can be done with the api).
Thanks for the link Jools. I noticed that you mention that error checking is limited MediaWiki::API->upload. Is this because you are having to parse the HTML returned for error messages?
I think I'm going to wait for an official API. It isn't mandatory that we support MediaWiki in our application, it would just be nice for some of our customers.
Regards,
Trevor DeVore
Thanks for the link Jools. I noticed that you mention that error checking is limited MediaWiki::API->upload. Is this because you are having to parse the HTML returned for error messages?
It's because I don't parse the html returned at all. Basically if the upload does a redirect (code 302), then I assume everything was ok, else there was a failure, but I give no more details. I could parse the html returned but as this function is somewhat temporary until the API supports upload, it works enough for the time being. (My module was created to replace an old module we were using in some code to manage an area on our site http://www.exotica.org.uk/wiki/UnExoticA)
Best Regards
Jools
mediawiki-api@lists.wikimedia.org