Using the API: moneytrackin’ netvibes module example
Deprecated: Please use the new improved Netvibes UWA module
Edit: *** Solved *** See this post
There is a problem with the user/password auth’ing. We have a javascript function that encrypts the password on the client side before send it, and it’s not working right now. Maybe netvibes wanted to increase the security by not allowing javascript execution at all. We have mailed them and let you know then it’s solved.
Here we’ll present a working example of the moneytrackin’ public API, the netvibes module. You can add it to your netvibes’ page from this URL: http://www.moneytrackin.com/netvibes/
Our API is bases on the SOAP standard, so accessing their methods is just as easy as this:
[code lang="php"]
// Initialize the connection
$client = new SoapClient("http://www.moneytrackin.com/api/wsdl/");
// And call a method (defined on the help sectio as well as on the wsdl endpoint)
try {
$result = $client->listProjects(
"username",
"password");
} catch (SoapFault $exception) {
echo "SOAP ERROR -> ".$exception->faultstring;
}
[/code]
Note that we are using php5 (soap and simplexml extensions), but you can also get it working on php4 with the NuSOAP free library
Continue reading for the full source code of our netvibes module
[code lang="php"]
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
[/code]The paste above seems to be incomplete, feel free to download the whole file from here: Moneytrackin' netvibes module
May 24th, 2006 at 10:33 pm
[...] Edit: take a look at this post for a working example [...]