Thing Broker Tool Demonstration

Youtubecomwatchvqh2 tgulwu4 success funcon

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ", name: "Ricardo- Galaxy- Nexus", descrip?on: "Descrip?on for a thing", type: "smartphone", metadata: null, followers: [ ], following: [ ] } Sending and retrieving an event to a thing •  For sending and event to a par?cular thing, send a post request to the URL hQp://localhost:8080/thingbroker/POST/things/thing- Id/ events?keep- stored=true. •  For retrieving events, send get method to the following URL. hQp://localhost:8080/thingbroker/POST/things/thing- Id/ events?keep- stored=true. . Example of sending a event $.ajax({ url: “hQp://localhost:8080/thingbroker/POST/things/thing- Id/events”, type: “POST”, dataType: “JSON”, data: {"video_url":"hQp://www.youtube.com/watch?v=QH2- TGUlwu4"}, success: func?on(){ alert(“The Event is Posted successfully”); }, }); More functions of Thing Broker API •  Like twiQer, Things...
View Full Document

This document was uploaded on 02/14/2014 for the course CSCI 6609 at Dalhousie.

Ask a homework question - tutors are online