Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
popfilemodules:xmlrpc [2009/09/25 15:45] – fixed typos in the function names amatubupopfilemodules:xmlrpc [2010/09/09 17:46] – get_buckets returns ARRAY amatubu
Line 148: Line 148:
 # #
        
-my $sk = $xml->call("POPFile/API.get_session_key",'admin',//);+my $sk = $xml->call("POPFile/API.get_session_key",'admin','');
 my $key = $sk->result; my $key = $sk->result;
 my $method = "POPFile/API.$ARGV[0]"; my $method = "POPFile/API.$ARGV[0]";
Line 169: Line 169:
     print join ("\n","TRANSPORT ERROR: ", $xml->transport->status);       print join ("\n","TRANSPORT ERROR: ", $xml->transport->status);  
 } else  { } else  {
-    print join ("\n",$res->paramsall);+    if ( ref $res->paramsall eq 'ARRAY' ) { 
 +        print join "\n", @{$res->paramsall}; 
 +    } else { 
 +        print $res->paramsall; 
 +    }
 } }
 +print "\n";
  
 # #
Line 243: Line 248:
  
 # say hello and get a session key # say hello and get a session key
-my $sk = $xmlrpc-> call('POPFile/API.get_session_key','admin',//)+my $sk = $xmlrpc-> call('POPFile/API.get_session_key','admin','')
  -> result;  -> result;
  
 
popfilemodules/xmlrpc.txt · Last modified: 2010/09/09 19:46 by 127.0.0.1
Old revisions

Should you find anything in the documentation that is incomplete, unclear, outdated or just plain wrong, please let us know and leave a note in the Documentation Forum.

Recent changes RSS feed Donate Driven by DokuWiki
The content of this wiki is protected by the GNU Fee Documentation License