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

repin() public method

Make a repin.
public repin ( integer $repinId, integer $boardId, string $description = '' ) : array
$repinId integer
$boardId integer
$description string
return array
    public function repin($repinId, $boardId, $description = '')
    {
        $requestOptions = ['board_id' => $boardId, 'description' => stripslashes($description), 'link' => stripslashes($repinId), 'is_video' => null, 'pin_id' => $repinId];
        return $this->execPostRequest($requestOptions, UrlBuilder::RESOURCE_REPIN, true)->getResponseData();
    }

Usage Example

 /** @test */
 public function it_should_create_repin()
 {
     $this->apiShouldCreatePin();
     $boardId = 1;
     $repinId = 11;
     $pinDescription = 'Pin Description';
     $this->assertNotEmpty($this->provider->repin($repinId, $boardId, $pinDescription));
     $this->apiShouldReturnError()->assertEmpty($this->provider->repin($repinId, $boardId, $pinDescription));
 }
All Usage Examples Of seregazhuk\PinterestBot\Api\Providers\Pins::repin