On 06/19/2012 03:41 AM, Sumana Harihareswara wrote:
> This is a reminder that you're invited to the pre-Wikimania hackathon,
> 10-11 July in Washington, DC, USA:
>
> https://wikimania2012.wikimedia.org/wiki/Hackathon
>
> In order to come, you have to register for the Wikimania conference:
>
> https://wikimania2012.wikimedia.org/wiki/Registration
>
> (Unfortunately, the period for requesting scholarships is now over.)
>
> At the hackathon, we'll have trainings and projects for novices, and we
> welcome creators of all Wikimedia technologies -- MediaWiki, gadgets,
> bots, mobile apps, you name it -- to hack on stuff together and teach
> each other.
>
> Hope to see you!
Actually, you don't have to register for Wikimania to come to the
hackathon. The registration fee is only required for the main
conference days; everyone is welcome to come to the hackathon days and
unconference for free. So tell your DC friends to sign up at
https://wikimania2012.wikimedia.org/wiki/Hackathon and come!
--
Sumana Harihareswara
Engineering Community Manager
Wikimedia Foundation
This is a reminder that you're invited to the pre-Wikimania hackathon,
10-11 July in Washington, DC, USA:
https://wikimania2012.wikimedia.org/wiki/Hackathon
In order to come, you have to register for the Wikimania conference:
https://wikimania2012.wikimedia.org/wiki/Registration
(Unfortunately, the period for requesting scholarships is now over.)
At the hackathon, we'll have trainings and projects for novices, and we
welcome creators of all Wikimedia technologies -- MediaWiki, gadgets,
bots, mobile apps, you name it -- to hack on stuff together and teach
each other.
Hope to see you!
--
Sumana Harihareswara
Engineering Community Manager
Wikimedia Foundation
Dear community,
I have been stuck with this problem for quite sometime, I have been
trying to use the upload api and have tried the example specified on the
page. And I've been getting the error: badtoken and info: invalid token.
I couldn't get it to work. I have followed the said steps. First get the
token. The result was as follows.
{"query":{"normalized":[{"from":"Test_Page","to":"Test Page"}],"pages":{"2":{"pageid":2,"ns":0,"title":"Test Page","touched":"2012-06-05T16:09:33Z","lastrevid":2,"counter":3,"length":12,"new":"","starttimestamp":"2012-06-15T14:43:02Z","edittoken":"a25a10589a377fc4d75e5e0dcfb209c2+\\"}}}}
Then tried uploading the file.
$params = array(
'action' => 'upload',
'url' =>
'http://www.google.com/intl/en_ALL/images/logo.gif',
'token' => "a25a10589a377fc4d75e5e0dcfb209c2%2B%5C",
'format' => 'json'
);
I keep getting the error as follows.
{"error":{"code":"badtoken","info":"Invalid token"}}
Where is it that I am going wrong ?
--
Regards,
Suryajith Chillara.
I would appreciate if anyone could give me any advice in the best way to
use the API to do the following:
For a particular Wikipedia page:
1. Determine if the page has changed in the last 24 hours.
2. Extract from the page only the sections that have changed in the last
24 hours.
I know the index.php call can return a history (e.g.
http://en.wikipedia.org/w/index.php?title=Ray_Bradbury&action=history )
which has links that allow you to get particular diffs. However this is
intended for human consumption, and would require some screen-scraping
to extract out the information I need.
Is there a way to use the API to get similar information as the
index.php?*&action=history command, but instead of getting HTML to get
an XML or JSON result that is easier to digest?
Thanks,
__
Eamonn
Hi there,
I know how to get a list of the user groups to which a given user belongs.
(I'm using action=query&list=users)
Is there a way to also fetch the time at which the user was added to those
groups?
I'm working specifically with Wikipedia.
If this data is unavailable through the API, does anyone know if it is
available at all?
Thanks!
-- Henry
Hey,
I have been trying to build a custom API action which could be used to
upload a file and move it to a particular folder. I've been trying to
get a custom API action working. I was following the API documentation
and the link
http://lalashan.mcmaster.ca/theobio/worden/index.php/Wikipedia_SF_Hackathon…
So my bare attempt was this. http://hastebin.com/pisivumifa.php <- this
was the template I've lifted off from APIcongresslookup. And this is my
setup page http://hastebin.com/bewocoxuqe.php
What else would I have to do to get it working? Is there some concrete
reference I could look up ?
Thanks,
--
Regards,
Suryajith Chillara.
On Wed, May 30, 2012 at 12:48 AM, Jools Wills <buzz(a)exotica.org.uk> wrote:
> On 29/05/12 23:41, nguyenkim thuat wrote:
>
>> I just know the version of my mediawiki.
>> it's 1.15.5-1
>>
>
> ok so you cant use the "edit" function then - thats for 1.16 and greater.
> 1.15 is very old.
>
> Check which version of the cpan mediawiki::api module also - you should
> get the latest (0.39)
>
> Best Regards
>
> Jools
>
My mediawiki version now is:
MediaWiki <https://www.mediawiki.org/> 1.19.0 PHP
<http://www.php.net/> 5.3.3-1ubuntu9.10
(apache2handler) SQLite <http://sqlite.org/> 3.7.2 with full-text search
support
I use the api->edit as your suggestions but it generated an error.
The code is:
* $mediawiki->edit( {
action => 'upload',
filename => $name,
comment => 'upload a file',
file => [$name],
ignorewarnings => 1,
bot => 1
} ) || die $mediawiki->{error}->{code} . ': ' .
$mediawiki->{error}->{details};
*
*Logged in with user "WikiAdmin".
22 bytes read
5: Unable to get an edit token for action 'upload'. at upload.pl line 35.*
So i do need to get a token before uploading a file with this newest
version of mediawiki?
Hi,
Is it possible to download old versions of a file (image, pdf ..) with
the function MediaWiki::API->download( $params_hashref
)<http://search.cpan.org/%7Eexobuzz/MediaWiki-API-0.39/lib/MediaWiki/API.pm#M…>?
When I tried to call this function for example with filename *
'File:20120606205541!Test.txt'* which is located in directory
images/archive/ I got empty result.
According to the documentation of the download function, it means the file
doesn't exist on the MediaWiki.
*"If the file does not exist (on the wiki) an empty string is returned. If
the file is unable to be downloaded undef is returned.*"
Thanks.