Yodata for Meteor
A simple Meteor wrapper of the Yodata JavaScript SDK. Please click here for the full list of methods and parameters, with complete documentation.
Install
meteor add bshamblen:yodata-client
Use
The following is an example of how you could use the Yodata client in a Meteor application. For the purposes of this example, this call will be done on the server. However, the Yodata client can be used on both the client and server side in a Meteor application:
1var ydClient = new YDClient({authToken: Meteor.user().services.yodata.accessToken}); 2 3ydClient.findById('yodata.task', objectId, function(err, task) { 4 if (err) { 5 //handle the error 6 } else { 7 //do somethind with the task document 8 } 9});