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

info() public method

Get information of a pin by PinID.
public info ( string $pinId ) : array | boolean
$pinId string
return array | boolean
    public function info($pinId)
    {
        $requestOptions = ['id' => $pinId, 'field_set_key' => 'detailed'];
        return $this->execGetRequest($requestOptions, UrlBuilder::RESOURCE_PIN_INFO);
    }

Usage Example

Example #1
0
 public function testGetPinInfo()
 {
     $response = $this->createApiResponse();
     $this->mock->expects($this->at(0))->method('exec')->willReturn($response);
     $this->mock->expects($this->at(1))->method('exec')->willReturn([]);
     $this->assertNotNull($this->provider->info(1));
     $this->assertFalse($this->provider->info(1));
 }
All Usage Examples Of seregazhuk\PinterestBot\Api\Providers\Pins::info