seregazhuk\PinterestBot\Api\Providers\Pins::like PHP Method

like() public method

Likes pin with current ID.
public like ( string $pinId ) : boolean
$pinId string
return boolean
    public function like($pinId)
    {
        return $this->likePinMethodCall($pinId, UrlBuilder::RESOURCE_LIKE_PIN);
    }

Usage Example

Example #1
0
 /** @test */
 public function likeAPin()
 {
     $response = $this->createApiResponse();
     $error = $this->createErrorApiResponse();
     $this->mock->shouldReceive('exec')->once()->andReturn($response);
     $this->mock->shouldReceive('exec')->once()->andReturn($error);
     $this->assertTrue($this->provider->like(1111));
     $this->assertFalse($this->provider->like(1111));
 }
All Usage Examples Of seregazhuk\PinterestBot\Api\Providers\Pins::like