Esempio n. 1
0
 /**
  * Save a Zipmark_Resource to the Zipmark Service
  *
  * @return Zipmark_Resource The Zipmark Object
  */
 public function save()
 {
     $method = 'POST';
     if ($this->id) {
         $method = 'PUT';
     }
     $response = $this->getClient()->request($method, $this->pathFor(), $this->toJson());
     Zipmark_Base::parseJsonToUpdateObject($response->body);
     $response->checkResponse($this);
     return $this;
 }