NAME
Twilio::TwiML::FaxResponse - The Response element of TwiML
SYNOPSIS
use Twilio::TwiML::FaxResponse;
my $response = Twilio::TwiML::FaxResponse->new;
$response->receive({ action => '/fax/received', media_type => 'application/pdf' });
print "Content-Type: text/xml\n\n", $response;
# <?xml version="1.0" encoding="UTF-8"?>
# <Response><Receive action="/fax/received" mediaType="application/pdf"/></Response>
DESCRIPTION
The root of the TwiML that tells Twilio what to do with an incoming fax. Return it from the fax webhook of a phone number.
See Twilio::TwiML::TwiML for the methods every element has.
METHODS
new
my $element = Twilio::TwiML::FaxResponse->new();
receive
my $child = $element->receive(\%attributes);
Add Receive child. Returns a Twilio::TwiML::Fax::Receive.
LICENSE
Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.