用户

    响应示例

    1. Status: 200 OK
    2. {
    3. "code": 0,
    4. "data": [
    5. {
    6. "id": 176947,
    7. "owner_id": 93,
    8. "finger_print": "xxx",
    9. "type": "",
    10. "title": "Coding@xxx",
    11. "has_expired": false,
    12. "created_at": 1483435363000
    13. }
    14. ]
    15. }

    获取当前用户头像,需要鉴权

      获取当前用户邮箱,需要。

      1. GET /api/account/email

      响应示例

      1. Status: 200 OK
      2. {
      3. "code": 0,
      4. }

      响应示例

      1. Status: 200 OK
      2. {
      3. "code": 0,
      4. "data": {
      5. "tags_str": "云计算追随者, 技术风向标",
      6. "tags": "19,32",
      7. "job_str": "产品",
      8. "job": 2,
      9. "sex": 0,
      10. "location": "广东 深圳",
      11. "company": "Coding.net",
      12. "slogan": "",
      13. "website": "",
      14. "introduction": "",
      15. "avatar": "https://dn-coding-net-production-static.codehub.cn/512b2a62-956b-4ef8-8e84-b3c66e71468f.png?imageMogr2/auto-orient/format/png/crop/!300x300a0a0",
      16. "gravatar": "",
      17. "created_at": 1403329814000,
      18. "last_logined_at": 1553703523000,
      19. "global_key": "coding",
      20. "name": "coding",
      21. "name_pinyin": "",
      22. "updated_at": 1553703524000,
      23. "path": "/u/coding",
      24. "status": 1,
      25. "is_member": 0,
      26. "id": 93,
      27. "vip": 4,
      28. "vip_expired_at": 1562256000000,
      29. "follows_count": 0,
      30. "fans_count": 0,
      31. "tweets_count": 756,
      32. "followed": true,
      33. "follow": true,
      34. "is_tencent_user": false
      35. }
      36. }

      通过 username 获取某个用户信息

      1. GET /api/account/key/{username}

      请求参数

      字段描述
      usernamestring用户名 username