Skip to content

Commit

Permalink
说明文件
Browse files Browse the repository at this point in the history
  • Loading branch information
anerg2046 committed Dec 14, 2016
1 parent ad9c26b commit 35f7477
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ class SnsLogin {
];
$OAuth = OAuth::getInstance($config, $channel);
$OAuth->getAccessToken();
/**
* 在获取access_token的时候可以考虑忽略你传递的state参数
* 此参数使用cookie保存并验证
*/
// $ignore_stat = true;
// $OAuth->getAccessToken(true);
$sns_info = $OAuth->userinfo();
/**
* 此处获取了sns提供的用户数据
Expand Down

0 comments on commit 35f7477

Please sign in to comment.