黑莓和 php 验证
有没有办法使用 php 验证用户黑莓 pin ?或您可能建议的任何其他方法:)
编辑
- 用户访问网站:example.com。
- 用户注册时输入黑莓 PIN。
- php/javascript/blackberry web Works 生成一个 4 位代码并将其发送到 blackberry pin(信使)。
- 读取 4 位代码返回 example.com 并将 4 位代码输入网站 5. 单击“继续”
- 告诉用户他们已成功验证 PIN
Is there a way to verify a users blackberry pin using php ? or any other methods you may suggest :)
EDIT
- Users visits website: example.com.
- user signs up enters a blackberry pin.
- php/javascript/blackberry web Works generates a 4 digit code and sends it to blackberry pin (messenger).
- reads the 4 digit code returns to example.com and enters the 4 digit code into the website 5. click continue
- tell user that they have successfully verified the pin
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
php 是服务器端代码,不会在黑莓上执行。 php 可以验证 pin,假设有一些客户端(在黑莓设备上)执行代码,将该信息传递给 php。
我发现这个论坛线程讨论如何在 java 中执行此操作:
http ://supportforums.blackberry.com/t5/Java-Development/Get-the-pin-number-of-a-Blackberry-Device/td-p/223412
php is server side code that would not execute on a blackberry. php could verify a pin assuming that there was some client side (on the blackberry device) code executing that would pass this information to php.
I found this forum thread discussing how to do this in java:
http://supportforums.blackberry.com/t5/Java-Development/Get-the-pin-number-of-a-Blackberry-Device/td-p/223412
我不知道有什么方法可以从网络服务器发送 BBM 消息。一旦 RIM 重新发布 BBM API,您可能可以专用一台 Blackberry 从您的服务器提取帐户验证码和 PIN,并使用设备上的应用程序发送 BBM 消息。这似乎有点不优雅。可能有一种 JavaScript 方法可以为您获取 PIN,但我对 JavaScript 不太熟悉。
另一种方法是在您的应用程序中实现 Blackberry Push API,但这可能会超出您的应用程序的合理开销。
我的方法是编写一个小型黑莓应用程序,可以从您的网站通过无线方式安装该应用程序。该应用程序可以收集用户信息,从 API 获取 PIN 并将所有数据发送到您的网站。注册完成后,该应用程序可能是您网站的网络快捷方式(如果您愿意的话),或者用户可以将其删除。
I don't know of any way to send a BBM message from a webserver. Once RIM re-releases the BBM API you could possably dedicate a Blackberry to pull account verification codes and PINs from your server and use an application on the device to send out the BBM message. That seems a little in-elegant. There may be a JavaScript method that can get the PIN for you, but I'm not very familiar with JavaScript.
Another way would be to implement the Blackberry Push API into your application, but this may be more overhead than is reasonable for your application.
The way I would do it is write a small Blackberry app that can be installed over the air from your website. The app could gather the user information, get the PIN from the API and send all the data up to your website. Once registration is complete, the application could be a web shortcut to your site, if that's what you want, or the user could delete it.