I would like to use action=opensearch rather than action=query
action=opensearch seems to return me a short result of the query if I
specify with limit=1, rather than action=query.

Why does action=opensearch returns nothing after being called by
unserialize() function?

2009/5/11 Rezuan Asrah <[email protected]>

> Michał "Hołek" Połtyn,
>
> The results shows pageids ..
>
> How do I use the pageids to get the content? Is this pageids similar to
> primary key for a recordset ?
>
> On Mon, May 11, 2009 at 4:52 AM, Michał <[email protected]> wrote:
>
>> 2009/5/10 Rezuan Asrah <[email protected]>:
>> > I prefer to use cURL, but how do you use that properly?
>> > Do you mean the "curl" from the command line, or the equivalent PHP
>> function
>> > that acts like it?
>> >
>> > Run the commad using "exec" function?
>>
>> ehh... these are, like, basics of the API ;)
>>
>> if ($api = @file_get_contents('
>> http://en.wikipedia.org/w/api.php?action=query&format=php&titles=Abraham_Lincoln|Film|Language'<http://en.wikipedia.org/w/api.php?action=query&format=php&titles=Abraham_Lincoln%7CFilm%7CLanguage'>
>> ))
>> {
>>        $api_result = unserialize($api);
>>        print_r($api_result);
>> }
>>
>>
>> --
>> Michał "Hołek" Połtyn
>>
>> _______________________________________________
>> Mediawiki-api mailing list
>> [email protected]
>> https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>>
>
>
>
> --
> Rezuan Asrah
> question = ( to ) ? be : ! be; -- Wm. Shakespeare
>
> http://elusi.blogspot.com
>



-- 
Rezuan Asrah
question = ( to ) ? be : ! be; -- Wm. Shakespeare

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

Reply via email to