弹性+ Drupal 共享数据
我环顾四周,似乎找不到这个问题的答案:事实上,这可能是一个愚蠢的问题,而且没有答案。
所以无论如何; 这是我的问题。
我有一个基于 Drupal 运行的网站。 因此,我还开始尝试使用 Adobe Flex 创建一些精美的拖/放 Web 应用程序,我想将它们嵌入到我的 Drupal 站点中。 现在的问题是......
我希望应用程序知道您的登录身份。 例如,我有一个进行大学橄榄球投票的应用程序,而您每周只能获得一张选票。 但是,我想避免用户必须输入他们的用户名和密码...
有没有一种方法可以让应用程序从网站中获取当前的 user_id,这样我就可以将其放在幕后并防止用户塞进投票箱或以其他人的身份投票?
任何帮助都会很棒...
I've looked around a bit and I can't seem to find the answer to this problem: in fact, this may be a stupid question and there isn't an answer.
So anyway; here's my problem.
I have a website that runs off of Drupal. So, I've also started to mess around with Adobe Flex to create a few fancy drag/drop webapps that I'd like to embed into my Drupal site. Now the question is this...
I want the application to know what you're logged in as. So for example, I have an application that does college football voting and you only get one vote per week. However, I want to avoid having the user have to type in their username and password...
Is there a way that I can get the application to get the current user_id out of the site, so I can put that behind the scenes and prevent users stuffing the ballot box or voting as someone else?
Any help would be great...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能需要查看服务模块。 在此模块中,有用于获取用户数据和节点数据的标准预配置服务。
Drupal 手册还为您提供了一些示例。
You may want to look at Services module. In this module there is standard pre-configured services for getting user data and nodes data.
Drupal handbook also have some examples for you.