zceolrj / Community

a demo for nodejs and angularjs
0 stars 0 forks source link

log #5

Open zceolrj opened 8 years ago

zceolrj commented 8 years ago

try players = new MysqlSubscription('allPlayers');

players.push(); players.shift();

players.changed();

zceolrj commented 8 years ago

try this `if (Meteor.isServer) { Meteor.methods({ checkTwitter: function () { this.unblock(); return Meteor.http.call("GET", "http://search.twitter.com/search.json?q=perkytweets"); } }); }

//invoke the server method if (Meteor.isClient) { Meteor.call("checkTwitter", function(error, results) { console.log(results.content); //results.data should be a JSON object }); }`

zceolrj commented 8 years ago

http://stackoverflow.com/questions/14320610/how-to-make-an-api-call-using-meteor

zceolrj commented 7 years ago

http://www.cnblogs.com/igeneral/p/3641574.html