WebService::Raygun::Message::User - Represent the User data in a raygun request.
use WebService::Raygun::Message::User; my $user = WebService::Raygun::User->new( identifier => "123456", email => 'test@test.com', is_anonymous => undef, full_name => 'Firstname Lastname', first_name => 'Firstname', uuid => '783491e1-d4a9-46bc-9fde-9b1dd9ef6c6e' );
The user data is all optional and may be left blank. This class just initialises them with empty strings or 1s or 0s depending on the context. The prepare_raygun method may be called to retreive the structure in a form that can be converted directly to JSON.
Something to identify the user.
Email address of logged in user.
Indicates whether or not the user is logged into your app.
User's full name.
User's first name.
Device unique identifier. Useful if sending from mobile device.
Return the data structure that will be sent to raygun.io
To install WebService::Raygun, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Raygun
CPAN shell
perl -MCPAN -e shell install WebService::Raygun
For more information on module installation, please visit the detailed CPAN module installation guide.