简体   繁体   English

如何在Symfony2中使用Dropbox Datastore API

[英]How to use Dropbox Datastore API in Symfony2

I've developed an HTML5 app using Symfony2 with my own data model (using Doctrine2). 我已经使用Symfony2和我自己的数据模型(使用Doctrine2)开发了HTML5应用程序。 Right now, I want to integrate my app with others apps (for iOS and Android), sharing and syncronizing the same data model, using Dropbox Datastore API . 现在,我想使用Dropbox Datastore API将我的应用程序与其他应用程序(适用于iOS和Android)集成,共享和同步相同的数据模型。

The apps for iOS and Android (developed by others) mentioned above are working perfectly with Dropbox Datastore API. 上面提到的iOS和Android应用(由他人开发)可与Dropbox Datastore API完美配合。

I was reading the official documentation and I've seen that exists an SDK for JS but I don't know if this SDK is valid for working with Symfony2 because I think the best way to call to the data model is in the controllers (server side, via PHP) and not in views (client side, via JS). 我正在阅读官方文档,但是我已经看到存在用于JS的SDK,但是我不知道此SDK是否适用于Symfony2,因为我认为调用数据模型的最佳方法是在控制器(服务器)中。方面,通过PHP)而不是视图中(客户端,通过JS)。

Maybe exists a bundle for this functionality (I haven't found anything about it) or a good way for work with this API in PHP or, maybe, it's possible in JavaScript (recalling the app has been developed in Symfony). 也许为此功能提供了一个捆绑包(我对此一无所获),或者在PHP中使用此API的一种好方法,或者有可能在JavaScript中使用(回想该应用程序是在Symfony中开发的)。

Someone has tried that? 有人尝试过吗? What is the best way to work with that API and how I can do it? 使用该API的最佳方法是什么?如何实现?

Thanks in advance! 提前致谢!

Searching on Packagist is always a good starting point! 在Packagist上进行搜索始终是一个不错的起点! Looks like there's already several packages made, and more generic OAuth packages if you want something more basic, 看起来已经制作了几个软件包,如果您想要更基本的东西,可以使用更多的通用OAuth软件包,

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM