Hello,
I'm currently trying to implementing a function to the revisions
module similar to templates=expand
(http://www.mediawiki.org/wiki/Manual:Parameters_to_index.php#Raw).
I'm unsure about the parameters that should invoke this function. It
only makes sense of course if rvprop=content is specified. I could add
an rvprop=expanded_content to give the expanded content, or I could
add another rvexpandtemplates parameters.
Also I noticed that PageSet->mTitles does not have the page id as
index. Is this on purpose? Because now implementing a getTitle method
is not really possible without a hack.
Bryan
Hi all,
This is the new branch with the contribution to create three new actions: edit, reguser, upload: http://svn.wikimedia.org/svnroot/mediawiki/branches/ApiEdit_Vodafone/ . New updates will be ready shortly, perhaps today.
Details about formats can be found at: http://www.mediawiki.org/wiki/API:Changing_wiki_content , see Edit, Upload and RegUser.
Raquel
Raquel Frisa
R&D Engineer
Vodafone Group Research & Development .ES
Tel: + 34 (607) 137-414
Fax: +34 (974) 215-267
Mobile: +34 (610) 513-633
mailto:raquel.frisa@vodafone.com
http://www.vodafone-rnd.com <http://www.vodafone-rnd.com/>
Postal Office: Parque Tecnológico Walqa, Crta. Zaragoza, N-330ª Km.566 - Edificio 2, 22197, Cuarte - Huesca, Spain
Vodafone Group Services Limited
Registered Office: Vodafone House, The Connection, Newbury, Berkshire, RG14 2FN
Registered in England No 3802001
I had an idea that would be nice to have implemented to the editing
api when it's done. The idea is to have some sort of transactions
(dunno if it's the right word), so that multiple edits are done only
if them all are possible. For example, if a program is to edit four
pages, lets say to nominate a page for deletion, thus first create a
nomination page, then link that page to the todays list, then add a
template to the actual page, and lastly notify the OP. All those edits
should only be done if them all can be done. With this functionality
should be an option to disable merge, and thus not make the edit if an
merge would be needed (to prevent two people to do almost the same
thing).
How to manage to do this could be difficult. one way would be to be
able to send multiple edit requests in one API call, but as the query
syntax (foo=bar&baz=quux) doesn't really support that (you would have
to index them then), a solution could be to allow queries using xml
instead.
An other more problematic implementation would be to have a meta call
to start and stop transactions. But that would raise the question how
long would the server keep a request in memory until discarded, i.e.
how long would it allow a client to wait sending the completion call.
Perhaps this is difficult to implement, as it would require multiple
edits to be performed as one atom, but it would be greatly to reduce
errors when failing to edit one of many required pages, as the example
above tells.
--
/Carl Fürstenberg <azatoth(a)gmail.com>
Hi.
I've been trying for a while to get an edittoken and use it to submit edits
to a test wiki running on my own machine (medaiwiki 1.11 from SVN, newer
than the Wikipedia.org at time of writing)
If I try to get a token for the WP main page thus:
http://en.wikipedia.org/w/api.php?action=query&prop=info&titles=Main%20Page…
The response I get is this (reformatted for clarity):
<?xml version="1.0" encoding="utf-8"?>
<api>
<query>
<pages>
<page pageid="11105676" ns="0" title="Main Page"
touched="2007-08-25T12:09:35Z" lastrevid="153530626" counter="0"
length="4726" />
</pages>
</query>
</api>
I can't see any edittoken In the XML that is returned - is it just that this
hasn't been implemented yet, or am I doing something wrong?
Many thanks,
--
Jim
Hey Raquel,
it's cool to see you guys working on this, since we are working on similar stuff! I'm curious how you guys are handeling these issues. Can you notify me when you've been able to get it in to SVN?!
Greetz,
Tom Maaswinkel (Head workgroup SRwiki)
Rabobank Nederland
Afd. Group ICT - Systemrealisation
Tel. +31-6 435 18 186
http://www.rabobank.nl
_____
Van: mediawiki-api-bounces(a)lists.wikimedia.org [mailto:mediawiki-api-bounces@lists.wikimedia.org] Namens Frisa, Raquel, VF-ES (rfrisar)
Verzonden: vrijdag 24 augustus 2007 13:11
Aan: mediawiki-api(a)lists.wikimedia.org
Onderwerp: [Mediawiki-api] MediaWiki API action=submit
Hi Benjamin, all,
I'm Raquel and work for Vodafone R&D. We are right now implementing the action=submit, indeed now "edit". We have a functional version but improvements are needed... We think it will be ready by end of this month.
We are also implementing two new actions: uploads (now just for images), and regUser to create user accounts.
As soon as we get access MediaWiki SVN, we'll create a new branch where you could see how it's going!
Raquel
Raquel Frisa
R&D Engineer
Vodafone Group Research & Development .ES
Tel: + 34 (607) 137-414
Fax: +34 (974) 215-267
Mobile: +34 (610) 513-633
http://www.vodafone-rnd.com <http://www.vodafone-rnd.com/>
Postal Office: Parque Tecnológico Walqa, Crta. Zaragoza, N-330ª Km.566 - Edificio 2, 22197, Cuarte - Huesca, Spain
Vodafone Group Services Limited
Registered Office: Vodafone House, The Connection, Newbury, Berkshire, RG14 2FN
Registered in England No 3802001
Confidencialidad
Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, contiene información de carácter confidencial exclusivamente dirigida a su destinatario o destinatarios y propiedad de Vodafone España. Queda prohibida su divulgación, copia o distribución a terceros sin la previa autorización escrita de Vodafone España, en virtud de la legislación vigente. En el caso de haber recibido este correo electrónico por error, se ruega notificar inmediatamente esta circunstancia mediante reenvío a la dirección electrónica del remitente y la destrucción del mismo.
Confidentiality
The information in this e-mail and in any attachments is classified as Vodafone España Confidential and Proprietary Information and solely for the attention and use of the named addressee(s). You are hereby notified that any dissemination, distribution or copy of this communication is prohibited without the prior written consent of Vodafone España and is s strictly prohibited by law. If you have received this communication in error, please, notify the sender by reply e-mail .
================================================
De informatie opgenomen in dit bericht kan vertrouwelijk zijn en
is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht
onterecht ontvangt, wordt u verzocht de inhoud niet te gebruiken en
de afzender direct te informeren door het bericht te retourneren.
Rabobank Nederland is een handelsnaam van de Cooperatieve
Centrale Raiffeisen-Boerenleenbank B.A.Rabobank Nederland
staat ingeschreven bij de K.V.K. onder nr. 30046259
================================================
The information contained in this message may be confidential
and is intended to be exclusively for the addressee. Should you
receive this message unintentionally, please do not use the contents
herein and notify the sender immediately by return e-mail.
Rabobank Nederland is a trade name of Cooperatieve Centrale
Raiffeisen-Boerenleenbank B.A. Rabobank Nederland is registered
by the Chamber of commerce under nr. 30046259
Hi Benjamin, all,
I'm Raquel and work for Vodafone R&D. We are right now implementing the action=submit, indeed now "edit". We have a functional version but improvements are needed... We think it will be ready by end of this month.
We are also implementing two new actions: uploads (now just for images), and regUser to create user accounts.
As soon as we get access MediaWiki SVN, we'll create a new branch where you could see how it's going!
Raquel
Raquel Frisa
R&D Engineer
Vodafone Group Research & Development .ES
Tel: + 34 (607) 137-414
Fax: +34 (974) 215-267
Mobile: +34 (610) 513-633
http://www.vodafone-rnd.com <http://www.vodafone-rnd.com/>
Postal Office: Parque Tecnológico Walqa, Crta. Zaragoza, N-330ª Km.566 - Edificio 2, 22197, Cuarte - Huesca, Spain
Vodafone Group Services Limited
Registered Office: Vodafone House, The Connection, Newbury, Berkshire, RG14 2FN
Registered in England No 3802001
Confidencialidad
Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, contiene información de carácter confidencial exclusivamente dirigida a su destinatario o destinatarios y propiedad de Vodafone España. Queda prohibida su divulgación, copia o distribución a terceros sin la previa autorización escrita de Vodafone España, en virtud de la legislación vigente. En el caso de haber recibido este correo electrónico por error, se ruega notificar inmediatamente esta circunstancia mediante reenvío a la dirección electrónica del remitente y la destrucción del mismo.
Confidentiality
The information in this e-mail and in any attachments is classified as Vodafone España Confidential and Proprietary Information and solely for the attention and use of the named addressee(s). You are hereby notified that any dissemination, distribution or copy of this communication is prohibited without the prior written consent of Vodafone España and is s strictly prohibited by law. If you have received this communication in error, please, notify the sender by reply e-mail .
Hello,
I was wondering if the API support posting / editing wiki article. I am
using the SVN trunk version of MediaWiki (from 08/23/07) and when I try a
request like this I get this error:
error code="unknown_action" info="Unrecognised value for parameter 'action'
The request:
api.php
?title=Bookmarks&revid=15&summary=A+summary&content=Blah%21%21&edittoken=%2B%5C&action=submit
Thanks,
Ben
Hello,
I am having trouble calling this url:
http://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=wikiped…
All I get is:
<?xml version="1.0" encoding="utf-8"?>
<api>
<query>
<search />
</query>
</api>
What's up? Is this not yet implemented, turned off? Any help here
would be really appreciated.
Thanks
Ben
--
Ben Srour
I'd like to mirror a MediaWiki (I'm not the administrator) by:
1. Using the MediaWiki API to get a list of all the pages + then
download the content of each page.
2. Every day, use the API to "visit" the recent changes page and keep
grabbing pages until the I get to a page whose version matches the
version I already have.
Both of these steps are fairly easy-- has someone written a
Perl/PHP/Python/whatever script to do this, or should I roll my own?
--
We're just a Bunch Of Regular Guys, a collective group that's trying
to understand and assimilate technology. We feel that resistance to
new ideas and technology is unwise and ultimately futile.