bshamblen:yodata-client

v0.0.22Published 10 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

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});