我的meteor web应用程序http://meteor.app基本上是许多其他网站的代理:如http://500px.com、http://instagr.am
当用户在我的http://meteor.app上搜索关键字时,我希望我的meteor服务器代码搜索http://500px.com或http://instagr.am
(有效地,我的前端调用我的服务器端点http://meteor.app/search,它将对500px和instrag.am进行Oauth调用)(使用connect-auth atm,目前我对oauth没有问题)
我不确定如何在meteor上创建http://meteor.app/search端点,因为一切都围绕着ORM/集合,并且在这个阶段我没有使用持久性。
那么我是使用并定制Meteor.Collection类来查询instragr.am端点呢,还是?
发布于 2012-04-29 01:29:54
我认为您的客户端代码应该使用: Meteor.call,它将调用Meteor.method。http://docs.meteor.com/#meteor_methods
此方法可以更新instagram的n行集合,并删除所有集合行,并在调用Meteor.method时重新填充该集合。
然而,对于一个模糊的问题,答案将是相当模糊的:)。
Madewith app是一个很好的起点:https://github.com/meteor/madewith,它使用API调用,等等。
https://stackoverflow.com/questions/10365640
复制相似问题