从api获得当前用户信息

使用方法: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"
    }
]


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值