gohighlevel-php-sdk

Working with Funnels

$version = '2021-07-28';
$ghl = \MusheAbdulHakim\GoHighLevel\GoHighLevel::init($access_token);
$funnels = $ghl->withVersion($version)
                ->make()
                ->funnel()
                ->list($locationId);

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

Fetch List of Funnels


    $response = $funnels->list($locationId, [
        //parameters
    ]);

Fetch list of funnel pages


    $response = $funnels->pages($funnelId, $locationId, $limit, $offset, [
        //parameters
    ]);

Fetch count of funnel pages


    $response = $funnels->countPages($funnelId, $locationId, [
        //parameters
    ]);

Redirect


    $redirect = $funnels->redirect();

Create Redirect


    $response = $redirect->create([
        //parameters
    ]);

Update Redirect By Id


    $response = $redirect->update($id, [
        //parameters
    ]);

Delete Redirect By Id


    $response = $redirect->delete($id, $locationId);

Fet List of Redirects


    $response = $redirect->list($locationId,[
        //parameters
    ]);