Hi Magnus,
I'm working now in Api Random Page functionality.
This is the first version format:
api.php?action=query&prop=randompage&rpprop=timestamp|user|comment|conte nt
Parameters: rpprop - Which properties to get for page. Values (separate with '|'): ids, flags, timestamp, user, size, comment, content Default: ids|timestamp|flags|comment|user
Soon, maybe I will add a new parameter "rpns" to be able to indicate the namespace desired of the page obtained.
You'll find a functional version in Vodafone's branch (ApiEdit_Vodafone) very soon.
Cheers, Alberto
-----Mensaje original----- De: mediawiki-api-bounces@lists.wikimedia.org [mailto:mediawiki-api-bounces@lists.wikimedia.org] En nombre de Magnus Manske Enviado el: martes, 16 de octubre de 2007 23:55 Para: mediawiki-api@lists.wikimedia.org Asunto: [Mediawiki-api] Missing API function : Random page(s)
'nuff said :-)
Magnus
_______________________________________________ Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Hi Alberto,
Nice! Hope to see it on wikipedia as well soon :-)
Thanks, Magnus
On 10/17/07, Frisa, Raquel, VF-ES (rfrisar) raquel.frisa@vodafone.com wrote:
Hi Magnus,
I'm working now in Api Random Page functionality.
This is the first version format:
api.php?action=query&prop=randompage&rpprop=timestamp|user|comment|conte nt
Parameters: rpprop - Which properties to get for page. Values (separate with '|'): ids, flags, timestamp, user, size, comment, content Default: ids|timestamp|flags|comment|user
Soon, maybe I will add a new parameter "rpns" to be able to indicate the namespace desired of the page obtained.
You'll find a functional version in Vodafone's branch (ApiEdit_Vodafone) very soon.
Cheers, Alberto
-----Mensaje original----- De: mediawiki-api-bounces@lists.wikimedia.org [mailto:mediawiki-api-bounces@lists.wikimedia.org] En nombre de Magnus Manske Enviado el: martes, 16 de octubre de 2007 23:55 Para: mediawiki-api@lists.wikimedia.org Asunto: [Mediawiki-api] Missing API function : Random page(s)
'nuff said :-)
Magnus
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Frisa, Raquel, VF-ES (rfrisar) schreef:
Hi Magnus,
I'm working now in Api Random Page functionality.
This is the first version format:
api.php?action=query&prop=randompage&rpprop=timestamp|user|comment|conte nt
Parameters: rpprop - Which properties to get for page. Values (separate with '|'): ids, flags, timestamp, user, size, comment, content Default: ids|timestamp|flags|comment|user
Soon, maybe I will add a new parameter "rpns" to be able to indicate the namespace desired of the page obtained.
Wouldn't it be better to just output the name of the page, and use a generator to obtain additional information? Like:
api.php?action=query&generator=randompage&grpns=0|4&prop=info
(or &prop=revision&rvprop=flags|user|comment|content, whatever the user would like).
Also, there's no need to put it in the Vodafone branch: if it works, just commit it on trunk.
Catrope
Before committing any new features to trunk, please document it at [[mw:API]], notify this mailing list, and wait a few days for comments. Unlike the web site, the API is designed for programs, so most changes require modification of the client code. It is easy to introduce a new feature, it is very hard to change its behavior later after everyone has started to use it.
Thx.
On 10/17/07, Roan Kattouw roan.kattouw@home.nl wrote:
Frisa, Raquel, VF-ES (rfrisar) schreef:
Hi Magnus,
I'm working now in Api Random Page functionality.
This is the first version format:
api.php?action=query&prop=randompage&rpprop=timestamp|user|comment|conte nt
Parameters: rpprop - Which properties to get for page. Values (separate with '|'): ids, flags, timestamp, user, size, comment, content Default: ids|timestamp|flags|comment|user
Soon, maybe I will add a new parameter "rpns" to be able to indicate the namespace desired of the page obtained.
Wouldn't it be better to just output the name of the page, and use a generator to obtain additional information? Like:
api.php?action=query&generator=randompage&grpns=0|4&prop=info
(or &prop=revision&rvprop=flags|user|comment|content, whatever the user would like).
Also, there's no need to put it in the Vodafone branch: if it works, just commit it on trunk.
Catrope
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
mediawiki-api@lists.wikimedia.org