How to get consumer key and and consumer secret for gmail api?

前端 未结 2 1296
自闭症患者
自闭症患者 2021-02-04 02:29

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. Do

2条回答
  •  清酒与你
    2021-02-04 03:05

    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.

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

提交回复
热议问题