Description

This function returns the URL for an integrated application.

Examples


https://hostname.example.com:2083/cpsess##########/execute/Integration/fetch_url?app=applicationname

$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
 
// What is the URL of the application applicationname?
$application_url = $cpanel->uapi(
    'Integration', 'fetch_url',    array(
        'app'    => 'applicationname',
    )
);

 

my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
 
# What is the URL of the application applicationname?
my $application_url = $cpliveapi->uapi(
    'Integration', 'fetch_url',    {
        'app'    => 'applicationname',
    }
);

 

<!-- What is the URL of the application applicationname? -->
[% data = execute( 'Integration', 'fetch_url', { app => 'applicationname'}  ); %]
[% FOREACH q = data %]
     <p>
         [% q %]
     </p>
[% END %]

 

uapi --user=username Integration fetch_url app=applicationname

{  
   "messages":null,
   "data":{  
      "redirect_url":"http://applicationname.example.com/application"
   },
   "status":1,
   "errors":null,
   "metadata":{  

   }
}

 

 

   

Parameters

ParameterTypeDescriptionPossible valuesExample
appstring

Required

The application's name.

A valid string.
applicationname

Returns

The function outputs one or both of the following returns:

ReturnTypeDescriptionPossible valuesExample
redirect_urlstringThe URL to which the application will redirect visitors.

A valid publicly-available URL.

http://application.example.com/application
              
urlstringThe URL to which the application redirects visitors if the redirect_url location is unavailable.A valid publicly-available URL.
http://application.example.com/