Created
April 23, 2014 02:48
-
-
Save SineSwiper/11201309 to your computer and use it in GitHub Desktop.
Travis CI API test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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