summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Net/Backtweet.pm7
-rw-r--r--lib/Net/Backtype.pm7
-rw-r--r--t/01_basic.t1
3 files changed, 8 insertions, 7 deletions
diff --git a/lib/Net/Backtweet.pm b/lib/Net/Backtweet.pm
index ea29a57..507c67b 100644
--- a/lib/Net/Backtweet.pm
+++ b/lib/Net/Backtweet.pm
@@ -5,9 +5,9 @@ use MooseX::Net::API;
extends 'Net::Backtype';
net_api_declare backtweet => (
- api_base_url => 'http://backtweets.com',
- format => 'json',
- format_mode => 'append',
+ base_url => 'http://backtweets.com',
+ format => 'json',
+ format_mode => 'append',
);
net_api_method backtweet_search => (
@@ -15,6 +15,7 @@ net_api_method backtweet_search => (
method => 'GET',
params => [qw/q since key/],
required => [qw/q key/],
+ expected => [qw/200/],
);
1;
diff --git a/lib/Net/Backtype.pm b/lib/Net/Backtype.pm
index 19ffcb3..1c507c3 100644
--- a/lib/Net/Backtype.pm
+++ b/lib/Net/Backtype.pm
@@ -6,9 +6,9 @@ use MooseX::Net::API;
our $VERSION = '0.01';
net_api_declare backtype => (
- api_base_url => 'http://api.backtype.com',
- format => 'json',
- format_mode => 'append',
+ base_url => 'http://api.backtype.com',
+ format => 'json',
+ format_mode => 'append',
);
net_api_method user_comments => (
@@ -16,6 +16,7 @@ net_api_method user_comments => (
method => 'GET',
params => [qw/key user/],
required => [qw/key user/],
+ expected => [qw/200/],
);
net_api_method user_followers => (
diff --git a/t/01_basic.t b/t/01_basic.t
index 9e0c120..2b6fda2 100644
--- a/t/01_basic.t
+++ b/t/01_basic.t
@@ -3,7 +3,6 @@ use warnings;
use Test::More;
use Net::Backtype;
use Net::Backtweet;
-use YAML::Syck;
BEGIN {
plan skip_all => 'set $ENV{BACKTYPE_KEY} for this test'