Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何才能获取普通的access_token #113

Closed
codesig opened this issue Sep 24, 2015 · 4 comments
Closed

如何才能获取普通的access_token #113

codesig opened this issue Sep 24, 2015 · 4 comments

Comments

@codesig
Copy link

codesig commented Sep 24, 2015

想要获取全局的access_token, 不是网页授权的access_token,没找到相关接口,请问如何才能获取,谢谢

@overtrue
Copy link
Collaborator

@codesig
Copy link
Author

codesig commented Sep 24, 2015

不好意思,不是很明白,能否给下具体代码,我用laravel的,我看到里面有getToken()方法,但好像这样会重新生成access token而不是之前缓存着的token,如何才能获取到之前全局缓存的token?

@overtrue
Copy link
Collaborator

类都给你了怎么不会用?你不会PHP?

@codesig
Copy link
Author

codesig commented Sep 24, 2015

明白了,这样可以

with(new AccessToken($appid,$appsecret))->getToken()

谢谢啦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants