网站开发 · 2025年4月24日

ecshop使用Google API及OAuth2.0登录授权(PHP)

一、申请clientID

https://console.developers.google.com/project

ecshop使用Google API及OAuth2.0登录授权(PHP)插图

二、开启Google+ API权限

https://console.developers.google.com/project/gentle-charmer-848/apiui/api

ecshop使用Google API及OAuth2.0登录授权(PHP)插图1

三、添加同意画面

ecshop使用Google API及OAuth2.0登录授权(PHP)插图2

四、建立新的用户端ID(一个域名对应一个ID)

ecshop使用Google API及OAuth2.0登录授权(PHP)插图3