gitpan / net-travis-api Goto Github PK
View Code? Open in Web Editor NEWRead-only release history for Net-Travis-API
Home Page: http://metacpan.org/release/Net-Travis-API
License: Other
Read-only release history for Net-Travis-API
Home Page: http://metacpan.org/release/Net-Travis-API
License: Other
NAME Net::Travis::API - Low Level Plumbing for travis-ci.org's api VERSION version 0.001001 DEVELOPMENT This code is highly in-development, and is feature incomplete, and does not presently represent all API functions available. At present, most the functionality is lower-level plumbing functions which should eventually give way to a higher level API. But code endeavors to approach better coverage eventually, and hopefully serve as a better documentation than Travis's own API docs, which were so lackluster I had to resort to sniffing their websites traffic from my browser to understand what was going on. AUTHENTICATION Presently this module only covers the overhead of getting authentication working with travis, so that you can do arbitrary requests and get useful responses. And this was the #1 challenge from the Travis API docs, because this process is poorly documented, and fettered with documentation about things documented not to be implemented yet. So, at present, you have several options: 1. Work with an unauthenticated User Agent. use Net::Travis::API::UA; my $ua = Net::Travis::API::UA->new(); $ua->get('/repos/someuser'); # Public Endpoint 2. Use the GitHub Authentication Module to get an authenticated agent. use Net::Travis::API::Auth::GitHub; my $ua = Net::Travis::API::Auth::GitHub->get_authorised_ua_for( $token ); $ua->get('/users'); # private endpoint 3. Get an authorization token some other way. And avoid incurring an authorization request overhead. use Net::Travis::API::UA; my $ua = Net::Travis::API::UA->new( authtokens => [ $token ] ); $ua->get('/users'); # private endpoint AUTHOR Kent Fredric <[email protected]> COPYRIGHT AND LICENSE This software is copyright (c) 2014 by Kent Fredric <[email protected]>. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.