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 HasProfileSettings
{
use HandlesRequest;
/**
* Get list of available locales
* @return array
*/
public function getLocales()
return $this->get(UrlBuilder::RESOURCE_AVAILABLE_LOCALES);
}
* Get list of available countries
public function getCountries()
return $this->get(UrlBuilder::RESOURCE_AVAILABLE_COUNTRIES);
* Get list of available account types
public function getAccountTypes()
return $this->get(UrlBuilder::RESOURCE_AVAILABLE_ACCOUNT_TYPES);