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

    public function related($pinId, $limit = Pagination::DEFAULT_LIMIT)
    {
        return $this->getFeed(['pin' => $pinId], UrlBuilder::RESOURCE_RELATED_PINS, $limit);
    }

Usage Example

Esempio n. 1
0
 /** @test */
 public function it_should_return_generator_for_related_pins()
 {
     $this->apiShouldReturnPagination()->apiShouldReturnEmpty();
     $pinId = 1;
     $res = $this->provider->related($pinId);
     $this->assertIsPaginatedResponse($res);
 }