zen-cart网站,模版,采集,二次开发

首页 » Linux » PHP » 阅读文章

谷歌账号登录Google API Oauth 2.0简单申请和使用教程

2012-07-01 17:03 60656 1 发表评论
标签:


首先进入谷歌应用 http://code.google.com/apis/console
创建一个project

在点击编辑,修改回调URL

编辑完后可以参照google开发文档开发

https://developers.google.com/accounts/docs/OAuth2?hl=zh-CN

然后按照需要下载对应的语言的client端

以PHP client 为例,需要修改src/config.php

    // The application_name is included in the User-Agent HTTP header.
    'application_name' => '',

    // OAuth2 Settings, you can get these keys at https://code.google.com/apis/console
    'oauth2_client_id' => '',
    'oauth2_client_secret' => '',
    'oauth2_redirect_uri' => '',

    // The developer key, you get this at https://code.google.com/apis/console
    'developer_key' => '',

授权

获取资料

相关日志:

评论 共1条 (RSS 2.0) 发表评论

发表评论

  • 
  • 插入代码

联系我 Contact Me

回到页首