Hi,
This example of API use is given - api.php?action=query&list=allimages&aisha1=123abc
I couldn't find any documentation on allimage or aisha1 in the auto-generated documentation or on mediawiki.org . Would anyone in the know mind writing up a working example? :)
thanks, Brianna
---------- Forwarded message ---------- From: bugzilla-daemon@mail.wikimedia.org bugzilla-daemon@mail.wikimedia.org Date: 19 Mar 2008 23:30 Subject: [Bug 1459] search for images/files by hash To: brianna.laugher@gmail.com
https://bugzilla.wikimedia.org/show_bug.cgi?id=1459
Roan Kattouw roan.kattouw@home.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |roan.kattouw@home.nl
--- Comment #5 from Roan Kattouw roan.kattouw@home.nl 2008-03-19 12:30:53 UTC --- (In reply to comment #4)
I have the vague recollection that there's a way to do lookups by hash in the API, but not in the UI at present.
api.php?action=query&list=allimages&aisha1=123abc
-- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are a voter for the bug.
Brianna Laugher schreef:
Hi,
This example of API use is given - api.php?action=query&list=allimages&aisha1=123abc
I couldn't find any documentation on allimage or aisha1 in the auto-generated documentation or on mediawiki.org . Would anyone in the know mind writing up a working example? :)
That's because it's a new feature that hasn't gone live yet. The example above *is* the working example (substituting 123abc for an SHA-1 hash, of course), or at least it will be when the allimages module goes live. You can get an image's SHA-1 hash with:
api.php?action=query&prop=imageinfo&titles=Image:Foo.jpg&iiprop=sha1
(this works already).
Roan Kattouw (Catrope)
On 19/03/2008, Roan Kattouw roan.kattouw@home.nl wrote:
Brianna Laugher schreef:
Hi,
This example of API use is given - api.php?action=query&list=allimages&aisha1=123abc
I couldn't find any documentation on allimage or aisha1 in the auto-generated documentation or on mediawiki.org . Would anyone in the know mind writing up a working example? :)
That's because it's a new feature that hasn't gone live yet. The example above *is* the working example (substituting 123abc for an SHA-1 hash, of course), or at least it will be when the allimages module goes live. You can get an image's SHA-1 hash with:
api.php?action=query&prop=imageinfo&titles=Image:Foo.jpg&iiprop=sha1
Great stuff. Sorry if I was too keen. ;)
Is there an API equivalent to Special:version? How do you know when API stuff goes live, just keep waiting and checking?
thanks, Brianna
On 3/19/08, Brianna Laugher brianna.laugher@gmail.com wrote:
Is there an API equivalent to Special:version? How do you know when API stuff goes live, just keep waiting and checking?
If you know what revision the feature was added in (that is the only real method of versioning within the API) you can use api.php?action=query&meta=siteinfo -- otherwise just test to see if the feature works, if not it is not live.
Minute Electron writes:
On 3/19/08, Brianna Laugher brianna.laugher@gmail.com wrote:
Is there an API equivalent to Special:version? How do you know when API stuff goes live, just keep waiting and checking?
If you know what revision the feature was added in (that is the only real method of versioning within the API) you can use api.php?action=query&meta=siteinfo -- otherwise just test to see if the feature works, if not it is not live.
You can also use action=paraminfo --VasilievVV
Did someone change list=categorymembers recently? It seems it won't take cmcategory anymore, and instead now requires cmtitle, and, now instead needs the "Category:" prefix.
I noticed today, when someone complained to me that my bot was breaking pages... :(
SQL
On Thu, Mar 20, 2008 at 7:38 AM, SQL sxwiki@gmail.com wrote:
Did someone change list=categorymembers recently? It seems it won't take cmcategory anymore, and instead now requires cmtitle, and, now instead needs the "Category:" prefix.
I noticed today, when someone complained to me that my bot was breaking pages... :(
The change was announced here: http://lists.wikimedia.org/pipermail/mediawiki-api/2008-February/000353.html
Sebastian
Ahh, completely missed it, thanks!
SQL
Sebastian Moleski wrote:
On Thu, Mar 20, 2008 at 7:38 AM, SQL <sxwiki@gmail.com mailto:sxwiki@gmail.com> wrote:
Did someone change list=categorymembers recently? It seems it won't take cmcategory anymore, and instead now requires cmtitle, and, now instead needs the "Category:" prefix. I noticed today, when someone complained to me that my bot was breaking pages... :(The change was announced here: http://lists.wikimedia.org/pipermail/mediawiki-api/2008-February/000353.html
Sebastian
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Brianna Laugher schreef:
Is there an API equivalent to Special:version? How do you know when API stuff goes live, just keep waiting and checking?
You can use api.php?action=help&version to see module versions, but it's probably better to use:
api.php?action=paraminfo&querymodules=allimages
which will list all parameters for the allimages module, or tell you that it doesn't exist.
Roan Kattouw (Catrope)
mediawiki-api@lists.wikimedia.org