$location = GoHighLevel::client($access_token,'2021-07-28')->location();
$client = GoHighLevel::client($access_token,'2021-07-28');
$location = $client->location()->create([
'name' => $user->name,
'companyId' => $companyId,
'email' => $user->email,
]);
$client = GoHighLevel::client($access_token,'2021-07-28');
$location = $client->location()->get($locationId);
$client = GoHighLevel::client($access_token,'2021-07-28');
$client->location()->update($locationId, [
// body
]);
$client = GoHighLevel::client($access_token,'2021-07-28');
$client->location()->delete($locationId, [
// deleteTwilioAccount => true
])
$tag = $location->tag();
$response = $tag->list($locationId);
$response = $tag->create($locationId, [
//parameters
]);
$response = $tag->get($locationId, $tagId);
$response = $tag->update($locationId, $tagId, [
]);
$response = $tag->delete($locationId, $tagId);
$customField = $location->customField();
$response = $customField->list($locationId, [
//parameters
]);
$response = $customField->create($locationId, $name, $dataType, [
//parameters
]);
$response = $customField->create($locationId, $name, $dataType, [
//parameters
]);
$response = $customField->update($locationId, $id, [
//parameters
]);
$response = $customField->delete($locationId, $id);
$response = $customField->upload($locationId, [
]);
$customValue = $location->customValue();
$response = $customValue->list($locationId);
$response = $customValue->create($locationId,[
//parameters
]);
$response = $customValue->get($locationId, $id);
$response = $customValue->update($locationId, $id, [
//parameters
]);
$response = $customValue->delete($locationId, $id);
$template = $location->template();
$response = $template->list($locationId, $originId, [
//parameters
]);
$response = $template->delete($locationId, $id);
$search = $location->search();
$response = $template->search([
//parameters
]);
//or
$response = $template->query([
//query parameters
]);
$response = $template->tasks($locationId, [
//query parameters
]);