line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# $Id: /mirror/coderepos/lang/perl/Atomik/trunk/lib/Atomik.pm 68160 2008-08-10T23:55:31.147997Z daisuke $ |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package Atomik; |
4
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
40
|
|
5
|
1
|
|
|
1
|
|
6
|
use Atomik::Client; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
22
|
|
6
|
1
|
|
|
1
|
|
75
|
use Atomik::Feed; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '0.00001'; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
BEGIN |
11
|
|
|
|
|
|
|
{ |
12
|
|
|
|
|
|
|
if ($ENV{ ATOMIK_DEBUG }) { |
13
|
|
|
|
|
|
|
*DEBUG = sub { print STDERR "@_\n" } |
14
|
|
|
|
|
|
|
} else { |
15
|
|
|
|
|
|
|
*DEBUG = sub {}; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
__END__ |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 NAME |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
Atomik - An Atom/AtomPub Framework |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 SYNOPSIS |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
use Atomik::Feed; |
31
|
|
|
|
|
|
|
my $feed = Atomik::Feed->new(); |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
use Atomik::Client; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
my $client = Atomik::Client->new( |
36
|
|
|
|
|
|
|
wsse => { # if you require WSSE authentication |
37
|
|
|
|
|
|
|
username => ..., |
38
|
|
|
|
|
|
|
password => ... |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
); |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
my $service = $client->service_get( uri => $service_uri ); |
43
|
|
|
|
|
|
|
my $feed = $client->feed_get( uri => $feed_uri ); |
44
|
|
|
|
|
|
|
my $entry = $client->entry_get( uri => $entry_uri ); |
45
|
|
|
|
|
|
|
$client->entry_create( |
46
|
|
|
|
|
|
|
uri => $entry_uri, |
47
|
|
|
|
|
|
|
entry => $entry |
48
|
|
|
|
|
|
|
); |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 DESCRIPTION |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
Atomik is yet another Atom / AtomPub framework. Please note that this module's |
53
|
|
|
|
|
|
|
APIs and internals are still in flux. I welcome suggestions and patches |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 AUTHOR |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Daisuke Maki C<< <daisuke@endeworks.jp> >> |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 LICENSE |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it |
62
|
|
|
|
|
|
|
under the same terms as Perl itself. |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
See http://www.perl.com/perl/misc/Artistic.html |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=cut |
67
|
|
|
|
|
|
|
|