The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

aki - The command-line data processor for web content

SYNOPSIS

    $ aki [options] URL

OPTIONS

    -d   --decoder       specify deoder(default: auto detect)

         --agent         user agent
         --timeout       connection timeout
    -m,  --method        HTTP method(default: GET)
    -H,  --header        request header
    -e , --referer       referer
    -b,  --cookie        cookie file path for request
    -c,  --cookie-jar    file path for saving response cookie
    -u,  --user          basic authentication credentials( "user:passwd" )

    -p,  --pointer       JSON pointer string(See: JSON::Pointer)

    -ie, --in-enc        input encoding(default: utf8)
    -oe, --out-enc       output encoding(default: utf8)

         --color         colorize the result
         --print_escapes show non-printable chars as "\n", "\t", etc.
         --stderr        print to STDERR(default: STDOUT)
         --indent        how many spaces in each indent(default: 4)

         --raw           show raw content
         --verbose       show verbose information

    -h,  --help          show this help
    -v,  --version       show the version

EXAMPLE

Easy Example:

    $ aki http://example.com/json --pointer '/foo/bar/0'
    ---
        baz     123
        qux     "foobar"
    ---

Example with OAuth header:

    $ aki https://api.example.com/1.1/statuses/home_timeline.json --header 'Authorization: OAuth oauth_consumer_key="OAUTH_CONSUMER_KEY", oauth_nonce="OAUTH_NONCE", oauth_signature="OAUTH_SIGNATURE", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1373763215", oauth_token="OAUTH_TOKEN", oauth_version="1.0"' --pointer '/0/entities'

    ---
        urls            [
            {
                display_url    "example.com/foo",
                expanded_url   "example.com/bar",
                indices        [
                    50,
                    72
                ],
                url            "example.com/baz"
            }
        ],
        user_mentions   []
    ---

CONFIGURATION

aki command will look for a configuration file before reading its command line parameters. This function depends on Config::CmdRC.

The configuration file is .akirc. And the location of a configuration file is /etc or $HOME but if the CMDRC_DIR environment variable is set, aki will look for config in that directory or current.

A sample configuration file might read:

    color: 1
    agent: MyAgent/1.0

AUTHOR

Dai Okabayashi <bayashi@cpan.org>

SEE ALSO

JSON::Pointer

Config::CmdRC

LICENSE

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.