Description

This function checks whether the current branding package's images are installed.

 If one or more images are not installed, the system will automatically reinstall them.

Examples 


https://hostname.example.com:2087/cpsess###########/json-api/cpanel?cpanel_jsonapi_user=user&cpanel_jsonapi_apiversion=2&cpanel_jsonapi_module=Branding&cpanel_jsonapi_func=installimages

$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
 
// Check whether branding package images are installed.
$check_imgs = $cpanel->api2(
    'Branding', 'installimages'
);

my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
 
# Check whether branding package images are installed.
my $check_imgs = $cpliveapi->api2(
    'Branding', 'installimages',
);

cpapi2 --user=username Branding installimages

{  
   "cpanelresult":{  
      "apiversion":2,
      "func":"installimages",
      "data":[  

      ],
      "event":{  
         "result":1
      },
      "module":"Branding"
   }
}

 

Parameters

This function does not accept parameters.

Returns

ReturnTypeDescriptionPossible valuesExample
resultBoolean

Whether the function succeeded.

  • 1 — The function succeeded.
  • 0 — The function failed.
1