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 BusinessAccount
{
use HandlesRequest;
/**
* Convert your account to a business one.
*
* @param string $businessName
* @param string $websiteUrl
* @return bool
*/
public function convertToBusiness($businessName, $websiteUrl = '')
$data = [
'business_name' => $businessName,
'website_url' => $websiteUrl,
'account_type' => 'other',
];
return $this->execPostRequest($data, UrlBuilder::RESOURCE_CONVERT_TO_BUSINESS);
}