diff options
author | franck cuny <franck@lumberjaph.net> | 2009-11-26 18:11:34 +0100 |
---|---|---|
committer | franck cuny <franck@lumberjaph.net> | 2009-11-26 18:11:34 +0100 |
commit | b8b8bb3d166081a02c85ce4cb4f7c28aca2f2166 (patch) | |
tree | e9aa3575e0c521c96510dd22bbf10c2f16405c9c /t/lib/Identica.pm | |
parent | add error (diff) | |
download | moosex-net-api-b8b8bb3d166081a02c85ce4cb4f7c28aca2f2166.tar.gz |
add more tests
Diffstat (limited to '')
-rw-r--r-- | t/lib/Identica.pm | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/t/lib/Identica.pm b/t/lib/Identica.pm new file mode 100644 index 0000000..3772d03 --- /dev/null +++ b/t/lib/Identica.pm @@ -0,0 +1,24 @@ +package Identica; +use Moose; +use MooseX::Net::API; + +has [qw/api_username api_password/] => ( is => 'ro', isa => 'Str' ); + +net_api_declare identica => ( + base_url => 'http://identi.ca/api', + format => 'json', + format_mode => 'append', + authentication => 1, +); +net_api_method public_timeline => ( + path => '/statuses/public_timeline', + method => 'GET', +); + +net_api_method update_status => ( + path => '/statuses/update', + method => 'POST', + params => [qw/status/], + required => [qw/status/], + params_in_url => 1, +); |