PHP 和 JS 的 XML RPC 问题

XML RPC issue with PHP and JS

本文关键字:RPC 问题 XML JS PHP      更新时间:2023-09-26

我必须发送以下XML RPC请求,我已经尝试了很多方法,尽管我无法做到。

你知道我如何通过PHP或JavaScript发送它吗?

boolean cache.purge ( int apiUserId, string authString, string currentDate, string url )

如果您需要更多信息,请告诉我。

这是我必须发送的请求:http://wiki.netdna.com/Glossary/API_Documentation#cache.purge下面是一个 PHP 示例: http://wiki.netdna.com/Glossary/API_Documentation#PHP

查看 http://wiki.netdna.com/Glossary/API_Documentation#PHP。使用以下行:

$f=new xmlrpcmsg("$namespace.$method", array(php_xmlrpc_encode($apiUserId),

但:

$namespace = 'cache';
$method = 'purge';

因此,将发送"cache.purge"消息。