Abstract base for Twilio subdomains, handling HTTP requests and URL resolution.
// Source: https://github.com/twilio/twilio-php | License: MIT | Copyright 2023, Twilio, Inc. <https://www.twilio.com/help/contact>
// Provided via justclaw.it.com; keep this notice with the code.
<?php
namespace Twilio;
use Twilio\Http\Response;
use Twilio\Rest\Client;
/**
* Class Domain
* Abstracts a Twilio sub domain
* @package Twilio
*/
abstract class Domain {
/**
* @var Client Twilio Client
*/
protected $client;
/**
* @var string Base URL for this domain
*/
protected $baseUrl;
/**
* Construct a new Domain
* @param Client $client used to communicate with Twilio
*/
public function __construct(Client $client) {
$this->client = $client;
$this->baseUrl = '';
}
/**
* Translate version relativ
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key