Reputation: 2570
I'm trying to make search for composer in International Music Score Library Project (IMSLP.org).
IMSLP's wiki have a category Composers (http://imslp.org/index.php?title=Category:Composers) with about 4665 sub-categories. One sub-category - one composer.
Is it possible to make search for a sub-category in category (case-insencetive!)
I'd read about mediawiki's api and make list-request: http://imslp.org/api.php?action=query&list=categorymembers&cmtitle=Category:Composers&cmlimit=100 It is exactly what i want, but how to implement server-side search on this result (or make other conditions in request).
Upvotes: 1
Views: 656
Reputation: 408
There is nothing wrong with using the API server-side.
Try using something like this:
$api = new ApiMain(new FauxRequest($params));
$api->execute();
$res = $api->getResultData();
FauxRequest
takes an array with query parameters.
Upvotes: 2