Net::Fastly::Client - communicate with the Fastly HTTP API
There are two ways to proxy:
The first method is to pass a proxy option into the constructor
my $client = Net::Fastly::Client->new(user => $username, password => $password, proxy => "http://localhost:8080");
The second is to set your https_proxy environment variable. So, in Bash
https_proxy
% export https_proxy=http://localhost:8080
or in CSH or TCSH
% setenv https_proxy=http://localhost:8080
Create a new Fastly user agent. Options are
The login to use
Your password
Alternatively use the API Key (only some commands are available)
Optionally pass in an https proxy to use.
Whether or not we're authed at all by either username & password or API key
Whether or not we're fully (username and password) authed
Set the current customer to act as.
NOTE: this will only work if you're an admin
To install Net::Fastly, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Fastly
CPAN shell
perl -MCPAN -e shell install Net::Fastly
For more information on module installation, please visit the detailed CPAN module installation guide.