Exemplo n.º 1
0
 /**
  * Sets the tags that define the room
  *
  * @param string $roomId Room id
  * @param array $tags Target tags
  * @return mixed
  */
 public function tags(string $roomId, array $tags = [])
 {
     return $this->fetch(Route::put('rooms/{roomId}')->with('roomId', $roomId)->withBody('tags', implode(', ', $tags)));
 }
Exemplo n.º 2
0
 /**
  * Update a message
  *
  * @param string $roomId Room id
  * @param string $messageId Message id
  * @param string $content New message body
  * @return mixed
  */
 public function update(string $roomId, string $messageId, string $content)
 {
     return $this->fetch(Route::put('rooms/{roomId}/chatMessages/{messageId}')->withMany(['roomId' => $roomId, 'messageId' => $messageId])->withBody('text', $content));
 }