gohighlevel-php-sdk

Locations Api

Create Location


$client = GoHighLevel::client($access_token,'2021-07-28');

 $location = $client->location()->create([
            'name' => $user->name,
            'companyId' => $companyId,
            'email' => $user->email,
        ]);

Get Location

$client = GoHighLevel::client($access_token,'2021-07-28');

$location = $client->location()->get($locationId);

Update Location

$client = GoHighLevel::client($access_token,'2021-07-28');
$client->location()->update($locationId, [
    // body
]);

Delete Location

$client = GoHighLevel::client($access_token,'2021-07-28');
$client->location()->delete($locationId, [
    // deleteTwilioAccount => true
])