private function speak($body, PhabricatorBotTarget $flow) { // The $flow->getName() returns the flow's UUID, // as such, the Flowdock API does not require the organization // to be specified in the URI $this->performPost('/messages', array('flow' => $flow->getName(), 'event' => 'message', 'content' => $body)); }
private function speak($message, PhabricatorBotTarget $channel, $type = 'TextMessage') { $room_id = $channel->getName(); $this->performPost("/room/{$room_id}/speak.json", array('message' => array('type' => $type, 'body' => $message))); }