私は今Githubで作業しています。githubログインユーザーの「OAuthトークン」を取得するにはどうすればよいですか上記のデータから OAuth トークンを取得します。
次のようなコマンドラインから oauth トークンを取得しました。
[root@localhost Dinesh]# curl -u 'DineshGK' -d '{"scopes":["repo"],"note":"Help example"}' https://api.github.com/authorizationsEnter host password for user 'DineshGK':
[root@localhost 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を使用して)欲しい..
誰でも助けてくれますか...よろしくお願いします....