You are here

public function WardenAPI::postSiteData in Warden 6

Same name and namespace in other branches
  1. 7 warden_api.inc \WardenAPI::postSiteData()

Send the site data to Warden.

Parameters

array $data:

Throws

Exception

File

./warden_api.inc, line 159
The API for communicating with the Warden server application.

Class

WardenAPI
@file The API for communicating with the Warden server application.

Code

public function postSiteData(array $data) {
  $encrypted_message = $this
    ->encrypt($data);
  $this
    ->request('/site-update', $encrypted_message);
}