// | | // | This program is distributed in the hope that it will be useful, | // | but WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | // | GNU General Public License for more details. | // | | // | You should have received a copy of the GNU General Public License | // | along with this program; if not, write to: | // | | // | Free Software Foundation, Inc. | // | 51 Franklin Street, Suite 330 | // | Boston, MA 02110-1301, USA. | // +----------------------------------------------------------------------+ // | Authors: João Prado Maia <*****@*****.**> | // | Authors: Elan Ruusamäe <*****@*****.**> | // +----------------------------------------------------------------------+ require_once 'XML/RPC.php'; require_once 'Eventum_RPC.php'; $client = new Eventum_RPC(); $client->setURL("http://rabbit.impleo.net/rpc/xmlrpc.php"); $client->setCredentials("user", "password"); $client->setDebug(true); $id = 64; try { $result = $client->getIssueDetails((int) $id); } catch (Eventum_RPC_Exception $e) { echo $e->getMessage(), "\n"; echo $e->getTraceAsString(), "\n"; exit(1); } print_r($result);