C2DM用PHP使用OAuth2.0(ClientLogin的是德precated!) [英] C2DM with PHP using OAuth2.0 (ClientLogin is deprecated!)

查看:180
本文介绍了C2DM用PHP使用OAuth2.0(ClientLogin的是德precated!)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

注:在你花你的时间阅读,请知道的C2DM本身去$ P $现在pcated和GCM更换(http://developer.android.com/guide/google/gcm/c2dm的.html)

- 原来的问题 -

-- Original question --

我们是否有例如code实现PHP服务器端code将邮件推送到使用C2DM Android设备?

Do we have example code for implementing PHP server-side code to push messages to Android devices using C2DM?

我已经寻找它使用的是旧的验证方法的ClientLogin这是德precated很多code样本。 参考: https://developers.google.com/accounts/docs/AuthForInstalledApps (重要提示:的ClientLogin已正式去precated 4月20日,2012年将继续努力,按照我们去precation的政策,但我们建议您迁移到的OAuth 2.0尽快。)

I have searched for many code samples which are using old authentication method ClientLogin which is deprecated. Reference: https://developers.google.com/accounts/docs/AuthForInstalledApps (Important: ClientLogin has been officially deprecated as of April 20, 2012. It will continue to work as per our deprecation policy, but we encourage you to migrate to OAuth 2.0 as soon as possible.)

推荐答案

这不符合C2DM适用,因为是托管accountif你看到的 https://developers.google.com/accounts/docs/AuthForInstalledApps 该甾体抗炎药

That does not apply with C2DM since is a hosted accountif you see the https://developers.google.com/accounts/docs/AuthForInstalledApps it saids

的ClientLogin可用于授权访问两个谷歌定期和   托管帐户。托管的帐户是部分用户帐户   在谷歌Apps服务。

ClientLogin can be used to authorize access to both Google regular and hosted accounts. A hosted account is a user account that is part of the Google Apps service.

另外,如果你看到的图形是为因为CAPTCHA涉及的UI界面用户之间存在明显的相互作用。

Also, if you see the graphic is a clear interaction between User as a UI interface since a CAPTCHA is involved.

修改

顺便说一句,你仍然可以将使用的ClientLogin但关键前2011年10月将要过期,所以你需要重新创建它们从这篇文章C2DM机制看。这是8日之前,ClientLogin的是pcated德$ P $一个pretty的最近的文章。 C2DM客户端登录密钥

BTW you can see from this post C2DM mechanism still will be using ClientLogin nevertheless the key before October 2011 were going to expired, so you need to recreate them. This is a pretty recent post from 8 days before the ClientLogin was deprecated. C2DM Client Login Key

这篇关于C2DM用PHP使用OAuth2.0(ClientLogin的是德precated!)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆