// Copyright 2021 The go-github AUTHORS. All rights reserved.//// Use of this source code is governed by a BSD-style// license that can be found in the LICENSE file.package githubimport ()// GetHookConfig returns the webhook configuration for a GitHub App.// The underlying transport must be authenticated as an app.//// GitHub API docs: https://docs.github.com/rest/apps/webhooks#get-a-webhook-configuration-for-an-app////meta:operation GET /app/hook/configfunc ( *AppsService) ( context.Context) (*HookConfig, *Response, error) { , := .client.NewRequest("GET", "app/hook/config", nil)if != nil {returnnil, nil, } := new(HookConfig) , := .client.Do(, , &)if != nil {returnnil, , }return , , nil}// UpdateHookConfig updates the webhook configuration for a GitHub App.// The underlying transport must be authenticated as an app.//// GitHub API docs: https://docs.github.com/rest/apps/webhooks#update-a-webhook-configuration-for-an-app////meta:operation PATCH /app/hook/configfunc ( *AppsService) ( context.Context, *HookConfig) (*HookConfig, *Response, error) { , := .client.NewRequest("PATCH", "app/hook/config", )if != nil {returnnil, nil, } := new(HookConfig) , := .client.Do(, , )if != nil {returnnil, , }return , , nil}
The pages are generated with Goldsv0.8.2. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.