public function create($pinId, $text)
    {
        $requestOptions = [
            'objectId' => $this->getAggregatedPinId($pinId),
            'pinId'    => $pinId,
            'text'     => $text,
        ];

        return $this->post(UrlBuilder::RESOURCE_COMMENT_PIN, $requestOptions, true);
    }
public function create($pinId, $text)
    {
        $requestOptions = [
            'objectId' => $this->getAggregatedPinId($pinId),
            'pinId'    => $pinId,
            'text'     => $text,
        ];

        return $this->post(UrlBuilder::RESOURCE_COMMENT_PIN, $requestOptions, true);
    }
public function create ( $ pinId , $ text ) { $ requestOptions = [ 'objectId' => $ this -> getAggregatedPinId ( $ pinId ) , 'pinId' => $ pinId , 'text' => $ text , ] ; return $ this -> post ( UrlBuilder :: RESOURCE_COMMENT_PIN , $ requestOptions , true ) ; }
Write a comment for a pin with current id.

@param int $pinId
@param string $text Comment

@return array
Write a comment for a pin with current id .