- Timestamp:
- 08/30/08 01:52:26 (3 months ago)
- Location:
- lang/perl/POE-Component-Client-Twitter/trunk
- Files:
-
- 2 modified
-
Makefile.PL (modified) (1 diff)
-
lib/POE/Component/Client/Twitter.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/POE-Component-Client-Twitter/trunk/Makefile.PL
r4257 r18443 4 4 5 5 requires $_ for (qw/ HTTP::Request HTTP::Date POE POE::Component::Client::HTTP URI /); 6 requires 'JSON ::Any' => 1.15;6 requires 'JSON' => 2.12; 7 7 8 8 build_requires 'Test::More'; -
lang/perl/POE-Component-Client-Twitter/trunk/lib/POE/Component/Client/Twitter.pm
r1179 r18443 7 7 use HTTP::Request::Common; 8 8 use HTTP::Date (); 9 use JSON ::Any;9 use JSON qw/decode_json/; 10 10 use POE qw( Component::Client::HTTP ); 11 11 use URI; … … 125 125 my ($kernel,$heap, $response) = @_[KERNEL,HEAP,ARG0]; 126 126 $kernel->yield(notify => 'update_success', 127 JSON::Any->jsonToObj($response->content)127 decode_json($response->content) 128 128 ); 129 129 } … … 133 133 134 134 my $data; 135 $data = JSON::Any->jsonToObj($response->content) if $response->is_success;135 $data = decode_json($response->content) if $response->is_success; 136 136 $kernel->yield(notify => 'friend_timeline_success', $data); 137 137 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)