-
-
03 Sep 2020 20:15:28 UTC
- Distribution: Net-Fastly
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (11)
- Testers (290 / 0 / 0)
- Kwalitee
Bus factor: 1- 28.55% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (37.76KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 14 contributors- - Fastly Inc
-
andri
-
Andri Antoniades
-
Artur Bergman
-
Eric Hodel
-
Gabor Szabo
-
Geoffrey Schorkopf
-
Leon Brocard
-
Matthew Wodrich
-
Michael May
-
Simon Wistow
-
Steve Ivy
-
Tatsuhiko Miyagawa
-
Thom Mahoney
NAME
Net::Fastly::Client - communicate with the Fastly HTTP API
SYNOPSIS
PROXYING
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% export https_proxy=http://localhost:8080
or in CSH or TCSH
% setenv https_proxy=http://localhost:8080
METHODS
new <opt[s]>
Create a new Fastly user agent. Options are
- user
-
The login to use
- password
-
Your password
- api_key
-
Alternatively use the API Key (only some commands are available)
- proxy
-
Optionally pass in an https proxy to use.
authed
Whether or not we're authed at all by either API key or username & password
key_authed
Whether or not we're authed by API key
fully_authed
Whether or not we're authed by username & password
set_customer <customer id>
Set the current customer to act as.
NOTE: this will only work if you're an admin
timeout <number>
Get or set the timeout value in seconds. The default value is 180 seconds.
Module Install Instructions
To install Net::Fastly, copy and paste the appropriate command in to your terminal.
cpanm Net::Fastly
perl -MCPAN -e shell install Net::Fastly
For more information on module installation, please visit the detailed CPAN module installation guide.