Add "json" option
[shpub.git] / src / shpub / Command / Repost.php
index 3c39178c84af83cda21e45a84cac6f2611fa5fb0..6d786096b7ae419f75808d4d5e9f1e24e0fc790f 100644 (file)
@@ -24,8 +24,8 @@ class Command_Repost extends Command_AbstractProps
         }
 
         $req = new Request($this->cfg->host, $this->cfg);
-        $req->req->addPostParameter('h', 'entry');
-        $req->req->addPostParameter('repost-of', $url);
+        $req->setType('entry');
+        $req->addProperty('repost-of', $url);
 
         $this->handleGenericOptions($cmdRes, $req);
         $res = $req->send();