Core REST Features to send Echo StreamServer requests over HTTP
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);
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.
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.
$http_post
(C) Advance Digital 2012
Andrew Droffner
To install Echo::StreamServer::KVS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Echo::StreamServer::KVS
CPAN shell
perl -MCPAN -e shell install Echo::StreamServer::KVS
For more information on module installation, please visit the detailed CPAN module installation guide.