Dashboard > Pulse v2.1 > ... > Remote API Examples > Python Example - Ping
  Pulse v2.1 Log In | Sign Up   View a printable version of the current page.  
  Python Example - Ping
Added by Jason Sankey, last edited by Jason Sankey on Mar 19, 2009
Labels: 
(None)

Pulse Manual Index

Overview

This example is the most basic connectivity test between client code and the pulse™ XML-RPC service.

Code

#! /usr/bin/env python

from xmlrpclib import ServerProxy, Error

PULSE_URL = "http://pal/xmlrpc"

server = ServerProxy(PULSE_URL)
print server.RemoteApi.ping()

Zutubi wiki is Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.10 Build:#528 Nov 29, 2006) - Bug/feature request - Contact Administrators