Net::Gnip::Filter - a GNIP filter
my @rules = ( { type => 'actor', value => 'joe' } ); my $filter = Net::Gnip::Filter->new($name, $full_data, [@rules], %opts); my $name = $filter->name; my $full = $filter->full_data; my @rules = $filter->rules; my %what = $filter->what; $filter->what( url => $url ); $filter->what( jid => $jid );
Create a new filter.
Get or sets the name.
Get or set whether we want full data
Get or set the rules.
Rules should be hashrefs with a type key and value key.
The type key should be one of
actor tag to regarding source
Get or set what type is needed.
Type should be one of
postUrl jid
Parse some xml into an activity.
Return the activity as xml
To install Net::Gnip, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Gnip
CPAN shell
perl -MCPAN -e shell install Net::Gnip
For more information on module installation, please visit the detailed CPAN module installation guide.