Add "json" option
[shpub.git] / src / shpub / Command / Reply.php
index 493d58716808de438821c7d269c57f96f1d9b78b..6b3bc94cd336238cd2479af242b304b847804103 100644 (file)
@@ -32,9 +32,9 @@ class Command_Reply extends Command_AbstractProps
         }
 
         $req = new Request($this->cfg->host, $this->cfg);
-        $req->req->addPostParameter('h', 'entry');
-        $req->req->addPostParameter('content', implode(' ', $cmdRes->args['text']));
-        $req->req->addPostParameter('in-reply-to', $url);
+        $req->setType('entry');
+        $req->addProperty('content', implode(' ', $cmdRes->args['text']));
+        $req->addProperty('in-reply-to', $url);
 
         $this->handleGenericOptions($cmdRes, $req);
         $res = $req->send();