You are here

public function Fastly::__construct in Fastly 7

Same name and namespace in other branches
  1. 7.2 fastly.api.inc \Fastly::__construct()

Construct function for the Fastly class.

File

./fastly.api.inc, line 15
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/';
}