解决了。使用对http://http://somegitlab/api/v1/commits?project_id=yourpojectId&project_token=yourproject令牌的有效请求:
{
"data":{
"before": "c3c39b43f160c2efed5bbc16d15e91eab3c2ec22",<-- not required
"after": "5539ffc98f07777b6360e976cbc7a796bb61e315",
"ref": "refs/heads/master",
"commits": [{
"id": "5539ffc98f07777b6360e976cbc7a796bb61e315",
"message": "fixes #1 complete:1 and 3 sum output", <-- not required
"timestamp": "2011-12-12T14:27:31+02:00", <-- not required
"url": "http://somegitlab/sonmeproject/somecommit", <-- not required
"author": {
"name": "Kirill Tilkachev",
"email": "lavcraft@gmail.com"
}
}
]
}
}