无论项目如何,我都需要获取gitlab里程碑列表 我尝试将下面的代码与提示的用户凭据一起使用
curl --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/projects/:id/milestones
我得到了结果
{
"message": "401 Unauthorized"
}
但是我需要的是
[
{
"id": 12,
"iid": 3,
"group_id": 16,
"title": "Sample10.0",
"description": "Version",
"due_date": "2013-11-29",
"start_date": "2013-11-10",
"state": "active",
"updated_at": "2013-10-02T09:24:18Z",
"created_at": "2013-10-02T09:24:18Z"
}
]