You are here

public function Fastly::signup in Fastly 7

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

Registers a new customer.

Parameters

array $data: Data to post to Fastly for the signup request.

Return value

array Data returned from Fastly.s

File

./fastly.api.inc, line 31
Contains Faslt class that handles API calls to the Fastly service.

Class

Fastly
Fastly API for Drupal.

Code

public function signup($data) {
  $headers['Content-Type'] = 'application/x-www-form-urlencoded';
  $result = $this
    ->query('plugin/drupal/signup', $data, 'POST', $headers);
  return json_decode($result->data);
}