Net::Dynect::REST::Session - A session object for the Dynect REST API
use Net::Dynect::REST; my $dynect = Net::Dynect::REST->new(user_name => $user, customer_name => $customer, password => $password); print $dynect->session . "\n"; print $dynect->session->api_version . "\n"; $dynect->session->delete;
Creates a new (empty) session object. You may supply the following arguments to populate this:
This gets (or sets) the user_name that was associated with the session established - as a convenience in case you have multiple sessions open and want to track them.
This is the value of the Auth Token header that must be sent with each authenticated request.
This is the version of the API that satisfied the call to establish the session.
This will remove the session object
Net::Dynect::REST, Net::Dynect::REST::info.
James bromberger, james@rcpt.to
Copyright (C) 2010 by James Bromberger
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.
To install Net::Dynect::REST, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Dynect::REST
CPAN shell
perl -MCPAN -e shell install Net::Dynect::REST
For more information on module installation, please visit the detailed CPAN module installation guide.