Net::Gnip::Activity::Payload - represent the payload in a Gnip activity item
my $payload = Net::Gnip::Activity::Payload->new($body); $payload->raw($meta_data); $activity->payload($payload); my $payload = $activity->payload;
Create a new payload.
Get or set the body of this payload.
Get or set the raw of this payload.
Takes a string of XML, parses it and returns a new, potentially populated payload
Return this payload 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.