/**
  * adding an item to the bookmarks. The name is post because that is
  * the correct HTTP method to add a ressource
  *
  * @param string $area
  * @param array $params 
  */
 public function post($area, $params = array())
 {
     if (!array_key_exists($area, $this->acceptedAreaTypes)) {
         return '{"error" : "this method is not supported"}';
     }
     $url = "{$area}/?";
     if (!($params = parent::createParams($params))) {
         return '{"error" : "invalid parameter submitted"}';
     }
     return parent::requestData(parent::createUrl($url . $params));
 }
<?php

/**
 * ZootoolGatePHP example
 *
 * Andy Wenk <*****@*****.**>
 */
include_once '../src/ZootoolGatePHP.php';
// these are the required parameter
$zoogate = new ZootoolGatePHP();
$zoogate->setApikey('your_api_key');
// username and password are optional. If you want to get your private
// bookmarks, you hav to provide them
$zoogate->setUsername('your_user_name');
$zoogate->setPassword('your_password');
// optional - set a limit for the display
$zoogate->setLimit(300);
// in which format do you want to get the result (json|object|array)
$zoogate->setResultFormat('json');
// examples for requests
// Items Popular
//$result = $zoogate->get('items', 'popular', array('type' => 'all'));
// Items Info
//$result =  $zoogate->get('items', 'info', array('uid' => 'il4ik2'));
// Users Items
$result = $zoogate->get('users', 'items', array('username' => 'awenkhh', 'offset' => '10'));
// Users Info
//$result =  $zoogate->get('users', 'info', array('username' => 'awenkhh'));
// Users Friends
//$result =  $zoogate->get('users', 'friends', array('username' => 'awenkhh'));
// Adding a bookmark
 public function parseResult($result)
 {
     return parent::parseResult($result);
 }