WWW::StreamSend::Audience - StreamSend Audience Class
use WWW::StreamSend; my $ss = WWW::StreamSend->new({login_id => 'login_id', key => 'key'}); my @audiences = $ss->get_audience(); foreach my $audience (@audiences) { printf ("Audience id = %d active people = %d\n", $audience->id, $audience->active_people_count"); } my $audience2 = $ss->get_audience({id => 1}); print $audience2->as_xml;
Returns unparsed XML with audience info
Other instance methods are accepted as described in API (See http://app.streamsend.com/docs/api/classes/AudiencesController.html for details)
For example:
$audience->active_people_count; $audience->id; $audience->created_at;
List of all accessible fields for current instance can be fetched this way:
my @fields = $audience->get_fields;
http://app.streamsend.com/docs/api/index.html
Michael Katasonov, <dionabak@gmail.com>
Copyright (C) 2011 by Michael Katasonov
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.1 or, at your option, any later version of Perl 5 you may have available.
2 POD Errors
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
=back without =over
To install WWW::StreamSend, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::StreamSend
CPAN shell
perl -MCPAN -e shell install WWW::StreamSend
For more information on module installation, please visit the detailed CPAN module installation guide.