![]() |
Adding API Functions
Hi,
I was wondering if it was possible to add a feature where I could place my own unique functions for the ISPConfig API. Code:
public function dns_zone_get_all($session_id, $primary_id) |
The above function is a duplicate of existing function. To get all zones were xfer = linode, use this function call instead:
$zones = $client->dns_zone_get($session_id, array('xfer' = 'linode')) |
Only getting around to updating that now. Thanks for that, will make updates much easier.
Anyone else looking at that example though, you need to have double quotes around 'xfer' = 'linode'. |
Singö quotes are fine. The difference between single and double quotes in PHP is that double quotes may contain variables that get replaces automatically, the above example does not contain any variables inside the strings, so single quotes are the right choice.
The error in my example is the =, it has to be => $zones = $client->dns_zone_get($session_id, array('xfer' => 'linode')); |
| All times are GMT +2. The time now is 15:47. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.