From 8462243a6cc0483b712c28982c9b11964440e9e6 Mon Sep 17 00:00:00 2001 From: Yatin Sarbalia Date: Sun, 12 Feb 2017 13:13:33 +0530 Subject: [PATCH] Update README with alternative way to call flock methods Adding due to queries regarding this where devs had doubts regarding parameters to be sent. --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 819591b..5bc7fa7 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,19 @@ flock.callMethod('chat.sendMessage', token, { }); ``` +Or you can call flock.\ directly. + +``` +flock.chat.sendMessage(token, { + to: 'u:wufu4udrcewerudu', + text: 'hello' +}, function (error, response) { + if (!error) { + console.log(response); + } +}); +``` + [methods]: http://docs.flock.co/display/flockos/Methods [events]: http://docs.flock.co/display/flockos/Events [event tokens]: http://docs.flock.co/display/flockos/Event+Tokens