X-Git-Url: https://git.cweiske.de/shpub.git/blobdiff_plain/f46e4d3108d944bcf86f5905780f1fcfd441c036..2fd49930473aa9a46ba5a1755606a51764e5175f:/src/shpub/Command/Like.php?ds=sidebyside diff --git a/src/shpub/Command/Like.php b/src/shpub/Command/Like.php index 65020dc..a619f7a 100644 --- a/src/shpub/Command/Like.php +++ b/src/shpub/Command/Like.php @@ -6,6 +6,7 @@ class Command_Like extends Command_AbstractProps public static function opts(\Console_CommandLine $optParser) { $cmd = $optParser->addCommand('like'); + $cmd->description = 'Create a like'; static::optsGeneric($cmd); $cmd->addArgument( 'url', @@ -24,8 +25,8 @@ class Command_Like extends Command_AbstractProps } $req = new Request($this->cfg->host, $this->cfg); - $req->req->addPostParameter('h', 'entry'); - $req->req->addPostParameter('like-of', $url); + $req->setType('entry'); + $req->addProperty('like-of', $url); $this->handleGenericOptions($cmdRes, $req); $res = $req->send();