Skip to content

Examples

Nick Marus edited this page Jul 19, 2016 · 1 revision

Examples

Markdown

spark.messageSendRoom('Tm90aGluZyB0byBzZWUgaGVyZS4uLiBNb3ZlIGFsb25nLi4u', {
  markdown: '**Hello**, please check out my webpage [here.](http://google.com)',
  files: ['http://company.com/myfile.doc']
})
.then(function(message) {
  console.log('Message sent: %s', message.txt);
})
.catch(function(err){
  console.log(err);
});
Clone this wiki locally