gpt4 book ai didi

go - ghinstallation 中 GitHub 应用程序的集成 ID 是什么?

转载 作者:IT王子 更新时间:2023-10-29 02:09:50 26 4
gpt4 key购买 nike

我正在尝试使用名为 ghinstallation 的库在 Golang 中创建一个 GitHub 应用程序.如下所述,需要集成 ID 和安装 ID。

// Wrap the shared transport for use with the integration ID 1 authenticating with installation ID 99.
itr, err := ghinstallation.NewKeyFromFile(tr, 1, 99, "2016-10-19.private-key.pem")
if err != nil {
log.Fatal(err)
}

我认为安装 ID 正是 URL 中出现的 ID(https://github.com/settings/installations/:installation_id)。但是,我不知道集成 ID 是什么。

最佳答案

GitHub 应用程序集成 ID 是您的 GitHub 应用程序的 ID。您可以在 GitHub 应用程序“常规”选项卡的“关于”部分找到它。

关于go - ghinstallation 中 GitHub 应用程序的集成 ID 是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50447491/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com