NodeJS APP: 我嘗試使用Github REST API「https://github.com/api/v3/repos/ {擁有者}/{回購} /問題」使用以下參數和令牌從我的nodeJS應用程序創建github問題。我傳遞參數「creator」來顯示誰創建/評論了這個問題。但它正在顯示gitHub Access令牌的所有者作爲問題的創建者。如何解決這個問題GitHub創建REST API問題與創建者參數
request.post({
url: githubApiEndpoint + "/repos/" + options.orgName + "/" + options.repoName + "/issues",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer " + options.accessToken
},
body: JSON.stringify({
title: "creating issue",
body: "description of issue",
creator: "username",
labels: ["question"]
})
}, callback);
,則您無法代表另一個人執行操作,創建者將成爲使用該API的已認證用戶。 – bitoiu