如何获得Gmail的API消费者键和消费者的秘诀是什么? [英] How to get consumer key and and consumer secret for gmail api?

查看:159
本文介绍了如何获得Gmail的API消费者键和消费者的秘诀是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用Gmail PHP PHP xoath样本,但它需要进入消费者密钥和消费者的秘密,那我找不到如何获得Gmail的API文档中获得。是否任何一个知道如何获得,也不知道任何相关文件的?

I am trying to use Gmail php xoath php samples, however it requires to enter consumer key and consumer secret which I could not find how to obtain in Gmail api documentation. Does any one know how to obtain them or know of any related documentation?

推荐答案

使用匿名 / 匿名 HMAC-SHA1 对于未与谷歌注册的应用程序签名。对于谷歌注册的应用程序,你应该使用应用程序域作为消费者密钥和消费者秘密依赖于签名方法(私有密钥 RSA-SHA1 和过程中产生的秘密为登记HMAC-SHA1 )。在签名的OAuth请求更多详细信息

Use anonymous / anonymous and HMAC-SHA1 signature for applications that are not registered with Google. For applications registered with Google, you should use the application domain as consumer key and the consumer secret depends on the signing method (your private key for RSA-SHA1 and the secret generated during the registration for HMAC-SHA1). More details at Signing OAuth requests.

需要注意的是,据我所知,HMAC-SHA1用于注册应用程序只能由谷歌Apps管理员安装的应用程序的支持。

Note that as far as I know, HMAC-SHA1 for registered applications is supported only for applications installed by the Google Apps admins.

这篇关于如何获得Gmail的API消费者键和消费者的秘诀是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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