for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace seregazhuk\PinterestBot\Api\Traits;
use seregazhuk\PinterestBot\Helpers\UrlBuilder;
trait HasRelatedTopics
{
/**
* Returns a list of related interests
* @param string $interest
* @return array|bool
*/
public function getRelatedTopics($interest)
return $this->execGetRequest(
[
'interest_name' => $interest,
],
UrlBuilder::RESOURCE_GET_CATEGORIES_RELATED
);
}
* Executes a GET request to Pinterest API.
*
* @param array $requestOptions
* @param string $resourceUrl
abstract protected function execGetRequest(array $requestOptions = [], $resourceUrl = '');