API Commands
[All Commands]

Command: WorldHosting_Update_Cron_Command



command WorldHosting_Update_Cron_Command

Modify existing cron command

Input Parameters ($data):

string ssid Token from Login
string domain hosted domain name
int id identifier of the command
string address URL address to be executed (optionally)
int active 0/1 whether the command is active (optionally)
string min minutes in crontab format (optionally)
string hour hours in crontab format (optionally)
string day days in crontab format (optionally)
string month months in crontab format (optionally)
string dayofweek day of week in crontab format (optionally)

Output Responses:

string status ok | error
array data Details about your request
 

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',
    
'id' => 58,
    
'address' => 'https://domain.or.af/script.php',
    
'min' => '00',
    
'hour' => '0',
    
'day' => '*',
    
'month' => '*',
    
'dayofweek' => '*',
  ),
);

$response $client->__call("WorldHosting_Update_Cron_Command",$params);
INPUT: Array ( [data] => Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [domain] => domain.or.af [id] => 58 [address] => https://domain.or.af/script.php [min] => 00 [hour] => 0 [day] => * [month] => * [dayofweek] => * ) ) OUTPUT: Array ( [status] => ok )

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