X-Git-Url: https://git.cweiske.de/shpub.git/blobdiff_plain/c6fd5d2f91a31c5014c2d40276b8d4ef771fb9a9..059c6ab77b8e63210b9afc266d62c9f543d4d7ae:/src/shpub/Command/Bookmark.php diff --git a/src/shpub/Command/Bookmark.php b/src/shpub/Command/Bookmark.php index e25365c..bdbe0f3 100644 --- a/src/shpub/Command/Bookmark.php +++ b/src/shpub/Command/Bookmark.php @@ -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']); }