You are here

public function MiniorangeSAMLCustomer::createCustomer in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 7

Create Customer.

File

includes/customer_setup.php, line 48
Contains miniOrange Customer class.

Class

MiniorangeSAMLCustomer
@file This class represents configuration for customer.

Code

public function createCustomer() {
  $url = MiniorangeSAMLConstants::BASE_URL . '/moas/rest/customer/add';
  $fields = array(
    'companyName' => $_SERVER['SERVER_NAME'],
    'areaOfInterest' => 'Drupal 7 SAML Module',
    'email' => $this->email,
    'phone' => $this->phone,
    'password' => $this->password,
  );
  return $this
    ->callService($url, $fields);
}