API Commands
[All Commands]

Command: WorldHosting_List_Cron_Commands



command WorldHosting_List_Cron_Commands

Get list of existing cron commands

Input Parameters ($data):

string ssid Token from Login
string domain hosted domain name

Output Responses:

string status ok | error
array data Details about your request
 
array commands list of cron commands
int id unique identifier of a command
string address URL address to be executed
int active 0/1 whether the command is active
string min minutes in crontab format
string hour hours in crontab format
string day days in crontab format
string month months in crontab format
string dayofweek day of week in crontab format

Sample:


<?php
$client 
= new SoapClient(
        
null
        array(
            
"location" => "https://PRODUCTION/cmd.php",
            
"uri" => "http://PRODUCTION/soap"
            
)
        );

$params = array ( 
    
"data" => array (
        
"login" => "demo",
        
"password" => "password",
    )
);

$response $client->__call("Login",$params);
$token $response["data"]["ssid"];

$params = array (
  
'data' => 
  array (
    
'ssid' => $token,
    
'domain' => 'domain.or.af',
  ),
);

$response $client->__call("WorldHosting_List_Cron_Commands",$params);
INPUT: Array ( [data] => Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [domain] => domain.or.af ) ) OUTPUT: Array ( [status] => ok [data] => Array ( [commands] => Array ( [0] => Array ( [id] => 58 [address] => https://domain.or.af/script.php [active] => 1 [min] => 00 [hour] => 0 [day] => * [month] => * [dayofweek] => * ) [1] => Array ( [id] => 59 [address] => http://sub.domain.or.af/script2.php [active] => 0 [min] => 30 [hour] => * [day] => * [month] => * [dayofweek] => 1,2,3,4,5 ) ) ) )

API Manual - version from 2019-07-31 15:54:31