[Developers] Perl API
Kirrily Robert
skud at infotrope.net
Fri Aug 24 06:34:30 UTC 2007
I just uploaded a trivial implementation of the Metaweb API to CPAN.
It'll take a little while to index but should be findable within a few
hours at most.
It goes roughly like this:
my $mw = Metaweb->new($args); # all args are optional
$mw->login($args); # login is optional; no longer needed for read access
my $result = $my->query($perl_data_structure); # returns a Perl data structure
my $raw_result = $mw->json_query($json); # returns JSON, completely unparsed
It needs more work, but it's something to play with for now. Comments
very welcome.
K.
--
Kirrily Robert
skud at infotrope.net
http://infotrope.net
More information about the Developers
mailing list