Subject: | 400 Bad Request |
I don't know if this is me, twitter changing their API or the module, but very recently this code has stopped working, saying 400: bad request. Any ideas?
#!/usr/bin/perl -w
use Net::Twitter::Lite::WithAPIv1_1;
my $known_user = 0;
eval {
if(Net::Twitter::Lite::WithAPIv1_1->new(legacy_lists_api => 0)->lookup_users({ screen_name => 'nigelhorne' })) {
$known_user = 1;
}
};
if($@) {
die "$@\n";
}
print "$known_user\n";