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

info() public method

Get category info
public info ( string $category ) : array | boolean
$category string
return array | boolean
    public function info($category)
    {
        return $this->execGetRequest(["category" => $category], UrlBuilder::RESOURCE_GET_CATEGORY);
    }

Usage Example

 /** @test */
 public function it_should_return_category_info()
 {
     $info = ['name' => 'category1'];
     $this->apiShouldReturnData($info);
     $this->assertEquals($info, $this->provider->info(1));
 }