Gitlab用户信息遍历

gitlab

curl -s https://git.huoxian.cn/api/v4/users/{userid} | jq

╰─ curl -s http://xx.xx.xx.xx:8800//api/v4/users/1 | jq                                                                                                                                                                      ─╯
{
  "id": 1,
  "name": "Administrator",
  "username": "root",
  "state": "active",
  "avatar_url": "http://192.168.50.10:8800/uploads/-/system/user/avatar/1/avatar.png",
  "web_url": "http://192.168.50.10:8800/root",
  "created_at": "2020-12-29T09:41:51.761Z",
  "bio": "",
  "bio_html": "",
  "location": "",
  "public_email": "",
  "skype": "",
  "linkedin": "",
  "twitter": "",
  "website_url": "",
  "organization": "",
  "job_title": "",
  "work_information": null
}
╰─ curl -s http://xx.xx.xx.xx:8800//api/v4/users/2 | jq                                                                                                                                                                      ─╯
{
  "id": 2,
  "name": "xxxxxx",
  "username": "xiaoxiaoMao",
  "state": "active",
  "avatar_url": "http://192.168.50.10:8800/uploads/-/system/user/avatar/2/avatar.png",
  "web_url": "http://192.168.50.10:8800/xiaoxiaoMao",
  "created_at": "2020-12-29T10:04:18.729Z",
  "bio": "",
  "bio_html": "",
  "location": "",
  "public_email": "",
  "skype": "",
  "linkedin": "",
  "twitter": "",
  "website_url": "",
  "organization": "",
  "job_title": "",
  "work_information": null
}
posted @ 2021-08-09 20:35  唐小风  阅读(288)  评论(0编辑  收藏  举报