我尝试使用Github API 点赞一个仓库:
但是响应总是这样的。
curl -X PUT -H "Authorization: token *****************" https://api.github.com/user/starred/fulldecent/system-bus-radio
但是响应总是这样的。
{
"message": "Not Found",
"documentation_url": "https://developer.github.com/v3"
}
我也尝试了alamofire
Alamofire.request(.PUT, "https://api.github.com/user/starred/"+repoFullName, headers: ["Authorization": "token \(token)"]).responseJSON{ response in
......
}
但是我仍然无法完成它