<<

NAME

MT::XMLRPC - Movable Type XML-RPC client routines

SYNOPSIS

    use MT::XMLRPC;

    ## Ping weblogs.com.
    MT::XMLRPC->weblogs_ping($blog)
        or die MT::XMLRPC->errstr;

    ## Ping a different service supporting the weblogs.com interface.
    MT::XMLRPC->ping_update('weblogUpdates.ping', $blog,
        'http://my.ping-service.com/RPC')
        or die MT::XMLRPC->errstr;

DESCRIPTION

MT::XMLRPC provides XML-RPC client functionality for sending pings to "recently updated" services. It contains built-in methods for sending pings to weblogs.com and movabletype.org; in addition, it has a more generic method for sending XML-RPC pings to other services that support the general weblogs.com API.

USAGE

MT::XMLRPC->weblogs_ping($blog)

Send an XML-RPC ping to weblogs.com for the blog $blog, which should be an MT::Blog object.

On success, returns a true value; on failure, returns undef, and the error message can be obtained by calling errstr on the class name.

MT::XMLRPC->mt_ping($blog)

Send an XML-RPC ping to movabletype.org for the blog $blog, which should be an MT::Blog object, and which should contain a valid Movable Type Recently Updated Key.

On success, returns a true value; on failure, returns undef, and the error message can be obtained by calling errstr on the class name.

MT::XMLRPC->ping_update($method, $blog, $url)

Send an XML-RPC ping to the XML-RPC server at $url for the blog $blog; the XML-RPC method called will be $method. In most cases (that is, unless you know otherwise), you should just use weblogUpdates.ping for $method.

On success, returns a true value; on failure, returns undef, and the error message can be obtained by calling errstr on the class name.

AUTHOR & COPYRIGHTS

Please see the MT manpage for author, copyright, and license information.

<<