The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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