File Coverage

blib/lib/WebService/LiveJournal/RPC.pm
Criterion Covered Total %
statement 18 24 75.0
branch n/a
condition n/a
subroutine 6 8 75.0
pod 0 2 0.0
total 24 34 70.5


line stmt bran cond sub pod time code
1             package WebService::LiveJournal::RPC;
2              
3 1     1   5237 use strict;
  1         2  
  1         29  
4 1     1   5 use warnings;
  1         2  
  1         27  
5 1     1   5 use Exporter;
  1         2  
  1         29  
6 1     1   5 use RPC::XML;
  1         3  
  1         26  
7 1     1   5 use RPC::XML::ParserFactory;
  1         2  
  1         14  
8 1     1   49 use RPC::XML::Client;
  1         2  
  1         196  
9             our @ISA = qw/ Exporter /;
10             our @EXPORT_OK = qw/ xml2hashref xml2hash /;
11              
12             # ABSTRACT: (Deprecated) RPC utilities for WebService::LiveJournal
13             our $VERSION = '0.09'; # VERSION
14              
15              
16             my $parser = new RPC::XML::ParserFactory;
17              
18             sub xml2hashref
19             {
20 0     0 0   my $xml = shift;
21 0           my $response = $parser->parse($xml);
22 0           my $struct = $response->value;
23 0           my $hash = $struct->value;
24             }
25              
26 0     0 0   sub xml2hash { %{ xml2hashref(@_) } }
  0            
27              
28             1;
29              
30             __END__
31              
32             =pod
33              
34             =encoding UTF-8
35              
36             =head1 NAME
37              
38             WebService::LiveJournal::RPC - (Deprecated) RPC utilities for WebService::LiveJournal
39              
40             =head1 VERSION
41              
42             version 0.09
43              
44             =head1 DESCRIPTION
45              
46             B<NOTE>: This distribution is deprecated. It uses the outmoded XML-RPC protocol.
47             LiveJournal has also been compromised. I recommend using DreamWidth instead
48             (L<https://www.dreamwidth.org/>) which is in keeping with the original philosophy
49             LiveJournal regarding advertising.
50              
51             =head1 SEE ALSO
52              
53             L<WebService::LiveJournal>
54              
55             =head1 AUTHOR
56              
57             Graham Ollis <plicease@cpan.org>
58              
59             =head1 COPYRIGHT AND LICENSE
60              
61             This software is copyright (c) 2013 by Graham Ollis.
62              
63             This is free software; you can redistribute it and/or modify it under
64             the same terms as the Perl 5 programming language system itself.
65              
66             =cut