Afer executing api upload
I get the following
_____________________
This module only accepts POST requests.
Parameters:
target - User to send email to
subject - Subject header
text - Mail body
token - A token previously acquired via prop=info
ccme - Send a copy of this mail to me
Example:
api.php?action=emailuser&target=WikiSysop&text=Content
api.php?action=emailuser&target=WikiSysop&text=Content
* action=watch *
Add or remove a page from/to the current user's watchlist
This module requires read rights.
This module requires write rights.
Parameters:
title - The page to (un)watch
unwatch - If set the page will be unwatched rather than watched
Examples:
api.php?action=watch&title=Main_Page
api.php?action=watch&title=Main_Page
api.php?action=watch&title=Main_Page&unwatch
api.php?action=watch&title=Main_Page&unwatch
* action=patrol *
Patrol a page or revision.
This module requires read rights.
This module requires write rights.
Parameters:
token - Patrol token obtained from list=recentchanges
rcid - Recentchanges ID to patrol
Example:
api.php?action=patrol&token=123abc&rcid=230672766
api.php?action=patrol&token=123abc&rcid=230672766
* action=import *
Import a page from another wiki, or an XML file
This module requires read rights.
This module requires write rights.
This module only accepts POST requests.
Parameters:
token - Import token obtained through prop=info
summary - Import summary
xml - Uploaded XML file
interwikisource - For interwiki imports: wiki to import from
One value:
interwikipage - For interwiki imports: page to import
fullhistory - For interwiki imports: import the full history, not just
the current version
templates - For interwiki imports: import all included templates as
well
namespace - For interwiki imports: import to this namespace
One value: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
14, 15
Examples:
Import [[meta:Help:Parserfunctions]] to namespace 100 with full history:
api.php?action=import&interwikisource=meta&interwikipage=Help:ParserFunctions&namespace=100&fullhistory&token=123ABC
api.php?action=import&interwikisource=meta&interwikipage=Help:ParserFunctions&namespace=100&fullhistory&token=123ABC
*** *** *** *** *** *** *** *** *** *** Permissions *** *** *** *** *** ***
*** *** *** ***
* writeapi *
Use of the write API
Granted to:
all, user, bot
* apihighlimits *
Use higher limits in API queries (Slow queries: 500 results; Fast queries:
5000 results). The limits for slow queries also apply to multivalue
parameters.
Granted to:
bot, sysop
*** *** *** *** *** *** *** *** *** *** Formats *** *** *** *** *** ***
*** *** *** ***
* format=json *
Output data in JSON format
This module requires read rights.
Parameters:
callback - If specified, wraps the output into a given function
call. For safety, all user-specific data will be restricted.
Example:
api.php?action=query&meta=siteinfo&siprop=namespaces&format=json
api.php?action=query&meta=siteinfo&siprop=namespaces&format=json
* format=jsonfm *
Output data in JSON format (pretty-print in HTML)
This module requires read rights.
Parameters:
callback - If specified, wraps the output into a given function
call. For safety, all user-specific data will be restricted.
Example:
api.php?action=query&meta=siteinfo&siprop=namespaces&format=jsonfm
api.php?action=query&meta=siteinfo&siprop=namespaces&format=jsonfm
* format=php *
Output data in serialized PHP format
This module requires read rights.
Example:
api.php?action=query&meta=siteinfo&siprop=namespaces&format=php
api.php?action=query&meta=siteinfo&siprop=namespaces&format=php
* format=phpfm *
Output data in serialized PHP format (pretty-print in HTML)
This module requires read rights.
Example:
api.php?action=query&meta=siteinfo&siprop=namespaces&format=phpfm
api.php?action=query&meta=siteinfo&siprop=namespaces&format=phpfm
* format=wddx *
Output data in WDDX format
This module requires read rights.
Example:
api.php?action=query&meta=siteinfo&siprop=namespaces&format=wddx
api.php?action=query&meta=siteinfo&siprop=namespaces&format=wddx
* format=wddxfm *
Output data in WDDX format (pretty-print in HTML)
This module requires read rights.
Example:
api.php?action=query&meta=siteinfo&siprop=namespaces&format=wddxfm
api.php?action=query&meta=siteinfo&siprop=namespaces&format=wddxfm
* format=xml *
Output data in XML format
This module requires read rights.
Parameters:
xmldoublequote - If specified, double quotes all attributes and content.
Example:
api.php?action=query&meta=siteinfo&siprop=namespaces&format=xml
api.php?action=query&meta=siteinfo&siprop=namespaces&format=xml
* format=xmlfm *
Output data in XML format (pretty-print in HTML)
This module requires read rights.
Parameters:
xmldoublequote - If specified, double quotes all attributes and content.
Example:
api.php?action=query&meta=siteinfo&siprop=namespaces&format=xmlfm
api.php?action=query&meta=siteinfo&siprop=namespaces&format=xmlfm
* format=yaml *
Output data in YAML format
This module requires read rights.
Example:
api.php?action=query&meta=siteinfo&siprop=namespaces&format=yaml
api.php?action=query&meta=siteinfo&siprop=namespaces&format=yaml
* format=yamlfm *
Output data in YAML format (pretty-print in HTML)
This module requires read rights.
Example:
api.php?action=query&meta=siteinfo&siprop=namespaces&format=yamlfm
api.php?action=query&meta=siteinfo&siprop=namespaces&format=yamlfm
* format=rawfm *
Output data with the debuging elements in JSON format (pretty-print in
HTML)
This module requires read rights.
Parameters:
callback - If specified, wraps the output into a given function
call. For safety, all user-specific data will be restricted.
Example:
api.php?action=query&meta=siteinfo&siprop=namespaces&format=rawfm
api.php?action=query&meta=siteinfo&siprop=namespaces&format=rawfm
* format=txt *
Output data in PHP's print_r() format
This module requires read rights.
Example:
api.php?action=query&meta=siteinfo&siprop=namespaces&format=txt
api.php?action=query&meta=siteinfo&siprop=namespaces&format=txt
* format=txtfm *
Output data in PHP's print_r() format (pretty-print in HTML)
This module requires read rights.
Example:
api.php?action=query&meta=siteinfo&siprop=namespaces&format=txtfm
api.php?action=query&meta=siteinfo&siprop=namespaces&format=txtfm
* format=dbg *
Output data in PHP's var_export() format
This module requires read rights.
Example:
api.php?action=query&meta=siteinfo&siprop=namespaces&format=dbg
api.php?action=query&meta=siteinfo&siprop=namespaces&format=dbg
* format=dbgfm *
Output data in PHP's var_export() format (pretty-print in HTML)
This module requires read rights.
Example:
api.php?action=query&meta=siteinfo&siprop=namespaces&format=dbgfm
api.php?action=query&meta=siteinfo&siprop=namespaces&format=dbgfm
*** Credits: ***
API developers:
Roan Kattouw <Firstname>.<Lastname>@home.nl (lead
developer Sep 2007-present)
Victor Vasiliev - vasilvv at gee mail dot com
Bryan Tong Minh - bryan . tongminh @ gmail . com
Yuri Astrakhan <Firstname><Lastname>@gmail.com (creator,
lead developer Sep 2006-Sep 2007)
Please send your comments, suggestions and questions to
[email protected]
or file a bug report at http://bugzilla.wikimedia.org/
http://bugzilla.wikimedia.org/
</error>
</api>
</pre>
</body>
</html>
<!-- Served in 0.394 secs. -->
________________________________
Bryan Tong Minh wrote:
>
> On Fri, Feb 12, 2010 at 6:00 PM, Heramb Lele
> <[email protected]> wrote:
>> but didnt have success
>>
> There is nothing that we can do with "didn't have success". What do
> you mean with that? Did you get an error messsage? Does the API return
> an Ok result but does the file still not appear?
>
> _______________________________________________
> Mediawiki-api mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>
>
--
View this message in context:
http://old.nabble.com/Image-uploading-tp27544560p27591052.html
Sent from the WikiMedia API mailing list archive at Nabble.com.
_______________________________________________
Mediawiki-api mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api