> In my humble opinion, passing session information in a URL is a bad
> idea. This could lead to social engineering attacks "paste your
> address to me" where people can then get the Session ID and thus
> manipulate the user's login. This is why cookies are the default.
In general, you are right. However, I doubt if this api use will happen
often: the api is an advanced *programming* interface, and not meant for
general client use ;). I assume Yuri wants to introduce it because many
simple (and even many more advanced) http client libraries do not support
cookies.
> POST would probably work okay, though. But then, you'd have to use
> buttons to go anywhere on your site, and the code just starts becoming
> unmaintainable.
Well, again, no. For api use this could be used, as the client can just
add post data. It's not necessary to browse the entire wiki using this
system, only api.php has to accept it :)
--valhallasw
Here is a very minor but annoying bug:
http://en.wikipedia.org/w/api.php?action=query&titles=-100&prop=info&redire…
Note that in the response, the title -100 is not quoted in the redirects
value --
"redirects": [
{
"from": -100,
"to": "100 BC"
}
],
This apparently happens only in JSON, and only for redirects; when I run the
same query without the 'format' parameter, the title is quoted. When I run a
query without the 'redirects' parameter, the title is quoted, even in JSON.
Interpreting the page title as an int instead of a string drives my client
program crazy! :)
Russ Blau
Hi Yuri!
The search still returns empty xml's, how much long do you think it will take before is it usable ?
Thanks,
Bogdan
----- Original Message ----
From: Yuri Astrakhan <yuriastrakhan(a)gmail.com>
To: MediaWiki API announcements & discussion <mediawiki-api(a)lists.wikimedia.org>
Sent: Thursday, August 2, 2007 5:32:39 PM
Subject: Re: [Mediawiki-api] New API features and changes
It seems there are still some issues on the server-side searching. My
guess it will start working fine the moment the rest of the core code
is updated. For now, the the only working change is addition of the
long awaited edit tokens. prop=info & intoken=edit|move...
--Yuri
On 8/2/07, Bogdan Pop <melccodobelc(a)yahoo.com> wrote:
>
> Hey.
> Now the api works (I do not get the error xml), but I get no results, no
> matter what I search:
> http://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=wikiped…
>
> For all 3 examples under the api search doc, I get no results:
> http://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=meaning
> http://en.wikipedia.org/w/api.php?action=query&list=search&srwhat=text&srse…
> http://en.wikipedia.org/w/api.php?action=query&generator=search&gsrsearch=m…
> For the last one, I get the empty xml: <api/>
> What's wrong? Many thanks,
> Bogdan
>
>
> ----- Original Message ----
> From: Yuri Astrakhan <yuriastrakhan(a)gmail.com>
> To: MediaWiki API announcements & discussion
> <mediawiki-api(a)lists.wikimedia.org>
> Sent: Tuesday, July 31, 2007 7:03:04 PM
> Subject: Re: [Mediawiki-api] New API features and changes
>
> All changes have been checked into the svn, but the servers have not
> been updated yet. Should happen soon, keep checking the api.php page.
>
> >
> > I get:
> > <error code="unknown_list" info="Unrecognised value for parameter 'list'">
> >
> > Thanks,
> > Bogdan
> >
> >
> > ----- Original Message ----
> > From: Yuri Astrakhan <yuriastrakhan(a)gmail.com>
> > To: MediaWiki API announcements & discussion
> > <mediawiki-api(a)lists.wikimedia.org>
> > Sent: Monday, July 30, 2007 11:38:56 AM
> > Subject: [Mediawiki-api] New API features and changes
> >
> >
> > New Features:
> > * list=search: Full text search has been added - both titles and
> > content are now search-able.
> > * list=allusers: Added groups - can be both filtered by a specific
> > group, and shown the groups the users belong to. (bug 10684 by
> > VasilievVV)
> >
> > Breaking change:
> > * prop=revisions: I removed the redundant pageid= attribute in the
> > <rev> tag - pageid is already given as part of the parent <page>
> > element. (Thx Platonides)
> >
> > Your help is still needed to improve documentation at
> > http://www.mediawiki.org/wiki/API - each function and
> > parameter needs
> > better documentation, with many simple examples. There is a template
> > to help with the presentation.
> >
> > As usual, if you notice any bugs -- http://bugzilla.wikimedia.org
> > Awaiting server sync for changes to go live.
> >
> > --Yurik
> >
> > _______________________________________________
> > Mediawiki-api mailing list
> > Mediawiki-api(a)lists.wikimedia.org
> > http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
> >
> >
> > ________________________________
> > Yahoo! oneSearch: Finally, mobile search that gives answers, not web
> links.
> > _______________________________________________
> > Mediawiki-api mailing list
> > Mediawiki-api(a)lists.wikimedia.org
> > http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
> >
> >
>
> _______________________________________________
> Mediawiki-api mailing list
> Mediawiki-api(a)lists.wikimedia.org
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>
>
> ________________________________
> Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on,
> when.
> _______________________________________________
> Mediawiki-api mailing list
> Mediawiki-api(a)lists.wikimedia.org
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>
>
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
____________________________________________________________________________________
Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool.
http://autos.yahoo.com/carfinder/
New:
* Added rvprop=size to prop=revisions. Can get the size of all the
revisions. The size will not be shown if it is NULL in the database.
* (Experimental) list=allpages now allows to filter by article min/max
size and protection status (thanks to [[en:user:madman]] for the
idea). The database performance of this addition might be so severe
that I might have to remove or restrict it.
Breaking change:
* list=exturlusage XML element's tag is now 'eu' instead of 'p' to be
more consistent with the other results.
It was great to meat many of you during the Wikimania conference in
Taipei. Thank you for all the ideas and suggestions.
Breaking change:
I have changed the prop=imageinfo a bit to return size values as
integers in json format.
More importantly, in order to simplify imageinfo format, the
repository name is now an attribute of the page element, not the
imageinfo element.
Examples:
Missing image:
<pages>
<page ns="6" title="Image:someNonExistingImage.jpg" missing=""
imagerepository="" />
</pages>
Image exists:
<page pageid="25046" ns="6" title="Image:Test.jpg"
imagerepository="local">
<imageinfo>
<ii size="105542" width="800" height="600" />
<ii size="28521" width="800" height="600" />
</imageinfo>
</page>
Image exists -- json:
"pages": {
"25046": {
"pageid": 25046,
"ns": 6,
"title": "Image:Test.jpg",
"imagerepository": "local",
"imageinfo": [
{
"size": 105542,
"width": 800,
"height": 600
},
{
"size": 28521,
"width": 800,
"height": 600
}
]
}
}
Hey.
Now the api works (I do not get the error xml), but I get no results, no matter what I search:
http://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=wikiped…
For all 3 examples under the api search doc, I get no results:
http://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=meaninghttp://en.wikipedia.org/w/api.php?action=query&list=search&srwhat=text&srse…http://en.wikipedia.org/w/api.php?action=query&generator=search&gsrsearch=m… the last one, I get the empty xml: <api/>
What's wrong? Many thanks,
Bogdan
----- Original Message ----
From: Yuri Astrakhan <yuriastrakhan(a)gmail.com>
To: MediaWiki API announcements & discussion <mediawiki-api(a)lists.wikimedia.org>
Sent: Tuesday, July 31, 2007 7:03:04 PM
Subject: Re: [Mediawiki-api] New API features and changes
All changes have been checked into the svn, but the servers have not
been updated yet. Should happen soon, keep checking the api.php page.
>
> I get:
> <error code="unknown_list" info="Unrecognised value for parameter 'list'">
>
> Thanks,
> Bogdan
>
>
> ----- Original Message ----
> From: Yuri Astrakhan <yuriastrakhan(a)gmail.com>
> To: MediaWiki API announcements & discussion
> <mediawiki-api(a)lists.wikimedia.org>
> Sent: Monday, July 30, 2007 11:38:56 AM
> Subject: [Mediawiki-api] New API features and changes
>
>
> New Features:
> * list=search: Full text search has been added - both titles and
> content are now search-able.
> * list=allusers: Added groups - can be both filtered by a specific
> group, and shown the groups the users belong to. (bug 10684 by
> VasilievVV)
>
> Breaking change:
> * prop=revisions: I removed the redundant pageid= attribute in the
> <rev> tag - pageid is already given as part of the parent <page>
> element. (Thx Platonides)
>
> Your help is still needed to improve documentation at
> http://www.mediawiki.org/wiki/API - each function and
> parameter needs
> better documentation, with many simple examples. There is a template
> to help with the presentation.
>
> As usual, if you notice any bugs -- http://bugzilla.wikimedia.org
> Awaiting server sync for changes to go live.
>
> --Yurik
>
> _______________________________________________
> Mediawiki-api mailing list
> Mediawiki-api(a)lists.wikimedia.org
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>
>
> ________________________________
> Yahoo! oneSearch: Finally, mobile search that gives answers, not web links.
> _______________________________________________
> Mediawiki-api mailing list
> Mediawiki-api(a)lists.wikimedia.org
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>
>
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
____________________________________________________________________________________
Got a little couch potato?
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&…