Giter VIP home page Giter VIP logo

net-travis-api's Introduction

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.

net-travis-api's People

Contributors

kentfredric avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.