Update list parameters.
listUpdate(string $id, string $name, $value) : boolean
listUpdate($id, $name, $value); header("Content-Type: text/plain"); if ($api->errorCode){ echo "Unable to load listUpdate()!\n"; echo "\tCode=".$api->errorCode."\n"; echo "\tMsg=".$api->errorMessage."\n"; } else { echo "SUCCESS! \n"; }
new xmlrpcval($apikey), 'id' => new xmlrpcval($listId), 'name' => new xmlrpcval('title'), 'value' => new xmlrpcval('New Title') ), 'struct'); $f = new xmlrpcmsg('listUpdate', array($v)); $c = new xmlrpc_client($apiUrl["path"], $apiUrl['host'], 80); $c->setDebug($debug); $r = &$c->send($f); header("Content-Type: text/plain"); if (!$r->faultCode()) { $retval = php_xmlrpc_decode($r->value()); echo "Returned: " . $retval . "\n"; } else { echo "Unable to load listUpdate()!\n"; echo "\tCode=" . $r->faultCode() . "\n"; echo "\tMsg=" . $r->faultString() . "\n"; }