I need some help - I've implemented the API using CodeIgniter for a
clients site and everything works on the site except for the wiki pages,
which are sluggish.
Here is my controller which lists the function calls being made and in
what order:
http://pastebin.com/m4021c1a7
And here is my model where the actual API calls are made:
http://pastebin.com/dd7c504c
The api.php file exists on the same server that is making the calls, so
it should be instant but the pages are so very slow, and only in the
instance of using the MW API.
Any help or insight anybody could give would be MUCH appreciated.
- Mark
Hello - I am mainly working with wikipedia's api and am struggling to get accurate data from wikipedia through the mediawiki API. Here is my example:
I am looking for an author by the name of Michael Jackson (http://en.wikipedia.org/wiki/Michael_Jackson_%28writer%29) however when I do an api search for him I get redirected to Michael Jackson the pop star. I know this isn't an easy problem to solve, however if I could specify additional information in the search other than just a title, I could probably get pretty accurate. For example, I know this guys birth year - it would be nice if I could do something like:
?title=michael jackson&birthdate=1942
Is there any way I could do this now? If not, any chance this might get included into the mediawiki api in the future?
Thanks!
Andrew
Hi,
I hope this is allowed here, but I have recently written a Perl module to
interface with the MediaWiki API, and am after users to try it and let me
know what works/doesn't etc.
The module is not on cpan yet (Awaiting an account), but can be downloaded
from http://www.exotica.org.uk/wiki/User:BuZz/MediaWiki::API
Thanks for listening!
Best Regards
Jools
As of r36306 [1], the behavior of action=edit's md5 parameter in
conjunction with the appendtext and prependtext parameters has changed.
Instead of requiring the MD5 hash of the entire article text (which
makes appendtext and prependtext kind of useless), the md5 parameter now
requires the hash of the concatenation of the prependtext and the
appendtext parameter. For example, if you set
prependtext=Foo&appendtext=bar , you'll need to set the md5 parameter to
the result of md5('Foobar') .
Roan Kattouw (Catrope)
[1] http://svn.wikimedia.org/viewvc/mediawiki?view=rev&revision=36306
Hi All,
I'm consistently getting the error in the subject line (or close
variants--some actions get further than executeAction() before throwing
a "Class not found") when attempting to use _any_ API action other than
query (which works fine). I've tried it on two 1.11 installs on machines
with totally different php setups. I'm using repo directory revision
35899 of the API.
Thanks for any light you can shed on this baffling and frustrating problem.
CYa,
JEREMY
Marco Schuster wrote:
> I suspect it are the +es in the "text" field, AFAIR these should be %20,
> right?
Perhaps; " " may be encoded as "+" in URL query strings, and most URL
encoding functions do this. But in post strings maybe "+" is not
acceptable. I will look to see if your suggestion fixes this.
MinuteElectron.
Hi,
It seems that there is a bug on the MediaWiki API regarding querying
old revisions.
The following call to the API should return the first revision made to
the "Tamilla_Abasova" article.
http://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop=ids&rv…
However, instead of returning 37099272 (the correct answer) the value
returned is 216581660 (the latest revision).
This problem seems to happen only when the article has a small number
of revisions.
Is this a known problem?
Where should I submit this bug report to?
--
Sérgio Nunes