seregazhuk\PinterestBot\Api\Providers\Comments::delete PHP Method

delete() public method

Delete a comment for a pin with current id.
public delete ( string $pinId, integer $commentId ) : boolean
$pinId string
$commentId integer
return boolean
    public function delete($pinId, $commentId)
    {
        $requestOptions = ['pin_id' => $pinId, 'comment_id' => $commentId];
        return $this->execPostRequest($requestOptions, UrlBuilder::RESOURCE_COMMENT_DELETE_PIN);
    }

Usage Example

 /** @test */
 public function it_should_delete_comments_for_pin()
 {
     $this->apiShouldReturnSuccess()->assertTrue($this->provider->delete(1111, 1111));
     $this->apiShouldReturnError()->assertFalse($this->provider->delete(1111, 1111));
 }