From f37409cbbf5e265beff95aa5a8ede513da5a8ed7 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Wed, 29 Nov 2006 09:01:52 +0000 Subject: this needs to be moved but well yea :P --- modules/amazon/jamendoSearch.class.php | 63 ++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 modules/amazon/jamendoSearch.class.php (limited to 'modules') diff --git a/modules/amazon/jamendoSearch.class.php b/modules/amazon/jamendoSearch.class.php new file mode 100644 index 00000000..b89f1a67 --- /dev/null +++ b/modules/amazon/jamendoSearch.class.php @@ -0,0 +1,63 @@ +_client = new xmlrpc_client('/xmlrpc/','www.jamendo.com',80); + + } // jamendoSearch + + /** + * query + * This runs a XMLRPC query and returns decoded data + */ + function query($command,$options) { + + $encoded_command = new xmlrpcval($command); + $encoded_options = new xmlrpcval($options,'struct'); + $message = new xmlrpcmsg('jamendo.get',array($encoded_command,$encoded_options)); + $response = $this->_client->send($message,15); + $value = $response->value(); + + return php_xmlrpc_decode($value); + + } // query + +} // jamendoSearch + +?> -- cgit