public function Fastly::__construct in Fastly 7.2
Same name and namespace in other branches
- 7 fastly.api.inc \Fastly::__construct()
Construct function for the Fastly class.
File
- ./
fastly.api.inc, line 18 - Contains Faslt class that handles API calls to the Fastly service.
Class
- Fastly
- Fastly API for Drupal.
Code
public function __construct($api_key, $service_id) {
$this->api_key = $api_key;
$this->service_id = $service_id;
$this->host = 'https://api.fastly.com/';
// $this->host = 'http://stg.fastly.com/';
$this->webhook = fastly_get_webhook();
}