我正在与Github now.How我可以得到“OAuth令牌”为github登录用户。现在我有数据像client_id,客户端的秘密,access_toke(这些所有数据获取后登录到github只).how我可以通过上述数据获取OAuth令牌吗?如何通过编程(使用JS/PHP)为github用户获取curl“授权令牌(OAuth令牌)”?
我通过命令行获得的OAuth托克这样的:
[[email protected] Dinesh]# curl -u 'DineshGK' -d '{"scopes":["repo"],"note":"Help example"}' https://api.github.com/authorizationsEnter host password for user 'DineshGK':
[[email protected] Dinesh]# curl https://api.github.com/authorizations --user "DineshGK" --data '{"scopes":["user"], "client_id":"...", "client_secret":"..."}'
Enter host password for user 'DineshGK':
{
"id": 2300973,
"url": "https://api.github.com/authorizations/2300973",
"app": {
"name": "SenchaPlayground",
"url": "http://192.168.1.56/OldPlayground/"
},
****"token": "..."**,**
"note": null,
"note_url": null,
"created_at": "2013-04-16T07:34:21Z",
"updated_at": "2013-04-16T07:34:21Z",
"scopes": [
"user"
]
}
我想,突出务实令牌(使用JS/PHP)..
任何一个可以帮助... 在此先感谢。 ...
是否有可能获得GitHub的登录用户“组oauth_token”与任何API像已单.... – AmGK