使用方法:http://edx.readthedocs.io/projects/edx-platform-api/en/latest/user/accounts.html
如,在浏览器输入:
http://cherry.cs.tsinghua.edu.cn/api/user/v1/accounts?usernames={username}[?view=shared]
会获得当前登录的用户信息
返回下面的信息
HTTP 200 OK
Content-Type: application/json
Vary: Accept
Allow: GET, HEAD, OPTIONS
[
{
"username": "Jane",
"bio": null,
"requires_parental_consent": true,
"name": "Jane",
"country": null,
"is_active": true,
"profile_image": {
"image_url_full": "http://cherry.cs.tsinghua.edu.cn/static/images/profiles/default_500.4215dbe8010f.png",
"image_url_large": "http://cherry.cs.tsinghua.edu.cn/static/images/profiles/default_120.4a5e0900098e.png",
"image_url_medium": "http://cherry.cs.tsinghua.edu.cn/static/images/profiles/default_50.3455a6581573.png",
"image_url_small": "http://cherry.cs.tsinghua.edu.cn/static/images/profiles/default_30.deee7287e843.png",
"has_image": false
},
"year_of_birth": null,
"level_of_education": null,
"accomplishments_shared": false,
"goals": "",
"language_proficiencies": [],
"gender": null,
"account_privacy": "private",
"mailing_address": "",
"email": "jenyzhang@163.com",
"date_joined": "2016-11-21T05:55:19Z"
}
]