}
$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();