External APIs

Cisco Spark: Collaboration

Trigger team messaging, video calling, and interactive drawing
Back to BLOCKS

About Cisco Spark: Collaboration

Cisco Spark is an app-centric cloud-based service that provides a complete collaboration suite for teams to create, meet, message, call, whiteboard, and share. With the Cisco Spark block, you can kick off a video call, open a chat message, or initiate an interactive whiteboard, all within the PubNub Network.
Try it Now
Categories:
External APIs External APIs
Chat & Social
Chat & Social
Triggers & Notifications
Triggers & Notifications
Last Updated:
20170523 at 12:22:49
Author
PubNub & Cisco

Walkthrough

Use the following block of code to send a message to a person.

Input

Example payload
{
  "token": "MY_TOKEN",
 	"action": "post-message",
 	"payload": {
 		"text": "Test message",
 		"toPersonId": "722bb271-d7ca-4bce-a9e3-471e4412fa77"
 	}
}

Output

Response
{
  "token": "MY_TOKEN",
 	"action": "post-message",
 	"payload": {
 		"text": "Test message",
 		"toPersonId": "722bb271-d7ca-4bce-a9e3-471e4412fa77"
 	},
  "sparkResponse": {
    "id" : "Y2lzY29zcGFyazovL3VzL01FU1NBR0UvOTJkYjNiZTAtNDNiZC0xMWU2LThhZTktZGQ1YjNkZmM1NjVk",
    "roomId" : "Y2lzY29zcGFyazovL3VzL1JPT00vYmJjZWIxYWQtNDNmMS0zYjU4LTkxNDctZjE0YmIwYzRkMTU0",
    "roomType" : "group",
    "toPersonId" : "Y2lzY29zcGFyazovL3VzL1BFT1BMRS9mMDZkNzFhNS0wODMzLTRmYTUtYTcyYS1jYzg5YjI1ZWVlMmX",
    "toPersonEmail" : "julie@example.com",
    "text" : "PROJECT UPDATE - A new project plan has been published on Box: http://box.com/s/lf5vj. The PM for this project is Mike C. and the Engineering Manager is Jane W.",
    "markdown" : "**PROJECT UPDATE** A new project plan has been published [on Box](http://box.com/s/lf5vj). The PM for this project is <@personEmail:mike@example.com> and the Engineering Manager is <@personEmail:jane@example.com>.",
    "files" : [ "http://www.example.com/images/media.png" ],
    "personId" : "Y2lzY29zcGFyazovL3VzL1BFT1BMRS9mNWIzNjE4Ny1jOGRkLTQ3MjctOGIyZi1mOWM0NDdmMjkwNDY",
    "personEmail" : "matt@example.com",
    "created" : "2015-10-18T14:26:16+00:00",
    "mentionedPeople" : [ "Y2lzY29zcGFyazovL3VzL1BFT1BMRS8yNDlmNzRkOS1kYjhhLTQzY2EtODk2Yi04NzllZDI0MGFjNTM", "Y2lzY29zcGFyazovL3VzL1BFT1BMRS83YWYyZjcyYy0xZDk1LTQxZjAtYTcxNi00MjlmZmNmYmM0ZDg" ]
  }
}

Try PubNub Today

Connect up to 100 devices for Free