I try to use github api to star a repo:
curl -X PUT -H "Authorization: token *****************" https://api.github.com/user/starred/fulldecent/system-bus-radio
but the response is always
{
"message": "Not Found",
"documentation_url": "https://developer.github.com/v3"
}
And I also try alamofire
Alamofire.request(.PUT, "https://api.github.com/user/starred/"+repoFullName, headers: ["Authorization": "token \(token)"]).responseJSON{ response in
......
}
But I still can't get it done