Skip to content

Commit b478ab6

Browse files
committed
Fix silly example
The mentions endpoint doesn't take a user_id, silly. It returns mentions for the authorized user. Fix that.
1 parent 6182364 commit b478ab6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/api.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
my $r = $client->verify_credentials;
1818
say "$$r{screen_name} is authorized";
1919

20-
my $mentions = $client->mentions({ user_id => $$r{id} });
20+
my $mentions = $client->mentions;
2121
for my $status ( @$mentions ) {
2222
say $$status{text};
2323
}

0 commit comments

Comments
 (0)