Hi all,

I'm newbie with API but I think that it is useful method to fast request.
I create a simple php to request pages about my wiki but if I use API
method, then my report is:
.. You need read permission to use this module .. API help page ..

I describe better:
* I have got one domain where it works url:
 
http://genomics.cribi.unipd.it/api.php?action=parse&text={{Category:Tool}}&format=phpfm
* I have got other domain where I request this url (without final
'fm') into php page (with file_get_contents() function)
* my result is an error about permission and API help page

* instead if I use next url into php page:
 
http://en.wikipedia.org/w/api.php?action=parse&text={{User:Bilardi}}&format=phpfm
* my result is http://en.wikipedia.org/wiki/User:Bilardi page

so that, php page works. I think that I must enable some parameters,
but $wgEnableAPI default value is true.. and if I set
$wgCrossSiteAJAXdomains = '*';
my result is again an error about permission and API help page

Can you help me about this?

Best,
Alessandra.

_______________________________________________
Mediawiki-api mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Reply via email to