File: demo/edit.php

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

Contents

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

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

$bot = new lm_wiki_bot($bot_config);

$bot->edit([
   
'title'=>'page title',
   
'text'=>'Hello'
   
]);


For more information send a message to info at phpclasses dot org.