You are here

public function Nodejs::sendContentToken in Node.js integration 8

File

src/Nodejs.php, line 130

Class

Nodejs

Namespace

Drupal\nodejs

Code

public function sendContentToken($message) {
  $options = [
    'method' => 'POST',
    'body' => Json::encode($message),
  ];
  return $this
    ->httpRequest('nodejs/content/token', $options);
}