You can download Open Classifieds that already implements Ocaku. Remember the software is for free!
If you don't want to use Open Classifieds, please to include your advertisements in Ocaku use this PHP Class
Here you can find a full example of usage for the Ocaku class:
$ocaku=new ocaku();
//Register new site
$data=array(
'siteName'=>'demo open classifieds',
'siteUrl'=>'http://demo.open-classifieds.com',
'email'=>'someemail@demo.com',
'language'=>'es'
);
$apiKey=$ocaku->newSite($data);
//edit an existing site
$data=array(
'KEY'=>'a98fe24e350ba2a1465e45841ab01b54',
'siteName'=>'demo open classifieds',
'email'=>'someemail@demo.com',
'language'=>'en'
);
$ocaku->editSite($data);
//sends email with the KEY to remember it
$data=array(
'siteUrl'=>'http://demo.open-classifieds.com',
'email'=>'someemail@demo.com'
);
$ocaku->rememberKEY($data);
//delete site
$ocaku->deleteSite('a98fe24e350ba2a1465e45841ab01b54');
//new Post
$data=array(
'KEY'=>'a98fe24e350ba2a1465e45841ab01b54',
'idPostInClass'=>3,
'Category'=>'Audio Market',
'Place'=>'Barcelona',
'URL'=>'http://demo.open-classifieds.com/offer/cat/barcelona.htm',
'type'=>'sell',
'title'=>'I forgot the title!!',
'description'=>'Description as long as you want',
'name'=>'pepe',
'price'=>'$450.5',
'language'=>'es',
'image'=>'http://www.fondosypantallas.com/wp-content/uploads/2008/04/kate_on_beach_lost.jpg',
'num_images'=>5
);
$ocaku->newPost($data);
//update Post
$data=array(
'KEY'=>'a98fe24e350ba2a1465e45841ab01b54',
'idPostInClass'=>3,
'Category'=>'Audio',
'Place'=>'madrid',
'URL'=>'http://demo.open-classifieds.com/offer/cat/barcelona.htm',
'type'=>'buy',
'title'=>'I forgot the title -UPDATE!!',
'description'=>'update',
'name'=>'pedape',
'price'=>'$0.5',
'language'=>'en',
'image'=>'',
'num_images'=>0
);
$ocaku->updatePost($data);
//Common params POST, for delete, deactivate, spam
$data=array(
'KEY'=>'a98fe24e350ba2a1465e45841ab01b54',
'idPostInClass'=>3,
);
//DELETE POST
$ocaku->deletePost($data);
//DEACTIVATE POST
$ocaku->deactivatePost($data);
//SPAM POST
$ocaku->spamPost($data);