diff options
Diffstat (limited to 'pttpi')
-rw-r--r-- | pttpi/cgi/t/article.list.pl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pttpi/cgi/t/article.list.pl b/pttpi/cgi/t/article.list.pl new file mode 100644 index 00000000..27370aa1 --- /dev/null +++ b/pttpi/cgi/t/article.list.pl @@ -0,0 +1,16 @@ +#!/usr/bin/perl +# $Id: article.list.pl,v 1.1 2003/05/19 02:04:14 in2 Exp $ +use Frontier::Client; +use Frontier::RPC2; +use MIME::Base64; +use Data::Dumper; +do 'host.pl'; + +$bid = $ARGV[0] || 0; + +$server = Frontier::Client->new(url => $server_url); +$result = $server->call('article.list', + $bid, # bid + 0); # from # article + +print Dumper($result); |