Net::API::Gett::Request - Gett Request object
This object encapsulates requests to and from the Gett API server.
You normally shouldn't instanstiate this class on its own as the library will create and return this object when appropriate.
These are read only attributes.
Scalar string. Read-only. Populated at object construction. Default value: https://open.ge.tt/1.
User agent object. Read only. Populated at object construction. Uses a default LWP::UserAgent.
This method uses the GET HTTP verb to fetch data from the Gett service.
Input:
endpoint fragment
Output:
Perl hash ref of the JSON response from the API
Gives a fatal error under any error condition.
This method uses the POST HTTP verb to send or fetch data to/from the Gett service.
data (as a string or Perl hashref)
If the data is a Perl hashref, it will be automatically encoded as JSON.
This method will die under any error condition.
This method uses the PUT HTTP verb to send data to the Gett service.
Full endpoint
Data filehandle
A chunksize
the length of the data in bytes
No automatic encoding is done this data. It is passed "as is" to the remote API.
A true value
Net::API::Gett
To install Net::API::Gett, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::API::Gett
CPAN shell
perl -MCPAN -e shell install Net::API::Gett
For more information on module installation, please visit the detailed CPAN module installation guide.