A area62 Verified User Joined Sep 23, 2008 Messages 44 Jan 7, 2014 #1 Does anyone know if this method/request is available in the latest API? I need it to change the TTL for all domains of a specific user.
Does anyone know if this method/request is available in the latest API? I need it to change the TTL for all domains of a specific user.
ISOS6 Verified User Joined May 7, 2009 Messages 318 Location Erbil, Tarin Hills, Iraq Jan 7, 2014 #2 Yes, here is my phpcode. It is not writen somewhere. But my code works PHP: $sock->query('/CMD_API_DNS_CONTROL', array('domain' => ' DOMAIN ', 'action' => 'ttl', 'ttl_select' => 'custom', 'ttl' => ' NUMBER OF TTL ')); I dont know how is your code, but if you post it, i can help correct it for you. Command naming format for API calls: For APIs, they're always the same name as in DA (when logged in witha browser), just with API added, eg: CMD_POP becomes: CMD_API_POP Click to expand... http://www.directadmin.com/api.html Last edited: Jan 7, 2014
Yes, here is my phpcode. It is not writen somewhere. But my code works PHP: $sock->query('/CMD_API_DNS_CONTROL', array('domain' => ' DOMAIN ', 'action' => 'ttl', 'ttl_select' => 'custom', 'ttl' => ' NUMBER OF TTL ')); I dont know how is your code, but if you post it, i can help correct it for you. Command naming format for API calls: For APIs, they're always the same name as in DA (when logged in witha browser), just with API added, eg: CMD_POP becomes: CMD_API_POP Click to expand... http://www.directadmin.com/api.html