Add "json" option
[shpub.git] / src / shpub / Command / Bookmark.php
index e25365cc03efc109406c501d40e58deaacc21683..bdbe0f3fffc5a92c2a46dafc4f60b2623c18e458 100644 (file)
@@ -32,11 +32,11 @@ class Command_Bookmark extends Command_AbstractProps
         }
 
         $req = new Request($this->cfg->host, $this->cfg);
-        $req->req->addPostParameter('h', 'entry');
-        $req->req->addPostParameter('bookmark-of', $url);
+        $req->setType('entry');
+        $req->addProperty('bookmark-of', $url);
 
         if ($cmdRes->args['text']) {
-            $req->req->addPostParameter('content', $cmdRes->args['text']);
+            $req->addProperty('content', $cmdRes->args['text']);
         }