You are here

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

File

src/Nodejs.php, line 153

Class

Nodejs

Namespace

Drupal\nodejs

Code

public function addUserToChannel($uid, $channel) {
  $options = [
    'method' => 'POST',
  ];
  return $this
    ->httpRequest("nodejs/user/channel/add/{$channel}/{$uid}", $options);
}