PHP Classes

File: demo/search.php

Recommend this page to a friend!
  Classes of Arash Soleimani   PHP Wikipedia API   demo/search.php   Download  
File: demo/search.php
Role: Example script
Content type: text/plain
Description: search action demo
Class: PHP Wikipedia API
Edit and retrieve content from Wikipedia
Author: By
Last change:
Date: 4 years ago
Size: 337 bytes
 

Contents

Class file image Download
<?php
require_once 'wikibot.class.php';

$bot_config = [
   
'url'=>'https://en.wikipedia.org',
   
'username'=>'Your Username',
   
'password'=>'Your Password'
];

$bot = new lm_wiki_bot($bot_config);

$data = $bot->search([
   
'offset'=>10,
   
'limit'=>10,
   
'sort'=>'last_edit_desc',
   
'keyword'=>'cellular'
]);

print_r($data);