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 username & password or API key

fully_authed

Whether or not we're fully (username and password) authed

set_customer <customer id>

Set the current customer to act as.

NOTE: this will only work if you're an admin