Skip to content

Instantly share code, notes, and snippets.

@SineSwiper
Created April 23, 2014 02:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SineSwiper/11201309 to your computer and use it in GitHub Desktop.
Save SineSwiper/11201309 to your computer and use it in GitHub Desktop.
Travis CI API test
use Net::Travis::API::UA;
use Devel::Dwarn;
my $ua = Net::Travis::API::UA->new();
#my $result = $ua->get('/repos/dbsrgits/dbix-class');
my $result = $ua->get('/repos/dbsrgits/dbix-class/builds/23558604');
die "Failed!" unless ($result->content_type eq 'application/json');
my $repo_info = $result->content_json;
Dwarn $repo_info;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment