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

Echo StreamServer API

Core REST Features to send Echo StreamServer requests over HTTP

SYNOPSIS

        use Echo::StreamServer::Settings;

        use Echo::StreamServer::Core;
        $Echo::StreamServer::Core::DEBUG=1;

        # Account as an unblessed hash ref:
        my $account = { 'appkey' => $ECHO_API_KEY, 'secret' => $ECHO_API_SECRET };

        # Key-Value Store API: Get data for the key "sample".
        my %params = (
                'key' => 'sample',
                'appkey' => $ECHO_API_KEY,
        );
        my $json_hash_ref = send_request($account, 'kvs/get', \%params);

DESCRIPTION

This is a PERL version of the Echo StreamServer API. http://aboutecho.com/developers/index.html

    feeds - Feeds API
    items - Items API
    kvs   - Key-Value Store API
    users - User API

Most API methods raise StreamServer exception strings. This indicates a server-side error, or malformed request.

Echo StreamServer Core API is a REST interface using JSON. It is a raw HTTP client.

Functions

send_request

Send REST request via HTTP GET or POST method when $http_post is a true value. Both the GET and POST methods send URL-encoded form parameters, according the the StreamServer API method. Returns the JSON response document parased into a PERL hash.

LICENSE

(C) Advance Digital 2012

AUTHOR

Andrew Droffner