From 64b43dac8d45da90ae4526b96bbc484ff8c9d0e9 Mon Sep 17 00:00:00 2001 From: Parth <46842784+pi1814@users.noreply.github.com> Date: Thu, 13 Nov 2025 15:29:00 +0530 Subject: [PATCH] fix: API client references in Go SDK documentation Converting OAuth2Api to OAuth2API --- docs/hydra/sdk/05_go.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/hydra/sdk/05_go.mdx b/docs/hydra/sdk/05_go.mdx index 9ccd0f7fa1..4e0cfc9b60 100644 --- a/docs/hydra/sdk/05_go.mdx +++ b/docs/hydra/sdk/05_go.mdx @@ -76,20 +76,20 @@ func main() { }, } ory := ory.NewAPIClient(configuration) - resp, r, err := ory.OAuth2Api.CreateOAuth2Client(oryAuthedContext).OAuth2Client(oAuth2Client).Execute() + resp, r, err := ory.OAuth2API.CreateOAuth2Client(oryAuthedContext).OAuth2Client(oAuth2Client).Execute() if err != nil { switch r.StatusCode { case http.StatusConflict: fmt.Fprintf(os.Stderr, "Conflict when creating oAuth2Client: %v\n", err) default: - fmt.Fprintf(os.Stderr, "Error when calling `OAuth2Api.CreateOAuth2Client`: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `OAuth2API.CreateOAuth2Client`: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } // response from `CreateOAuth2Client`: OAuth2Client fmt.Fprintf(os.Stdout, "Created client with name %s\n", resp.GetClientName()) - clients, r, err := ory.OAuth2Api.ListOAuth2Clients(oryAuthedContext).ClientName(clientName).Execute() + clients, r, err := ory.OAuth2API.ListOAuth2Clients(oryAuthedContext).ClientName(clientName).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.ListOAuth2Clients``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -106,5 +106,5 @@ func main() { You can find more examples of SDK usage in the autogenerated documentation: -- [OAuth2Api API](https://github.com/ory/hydra-client-go/blob/master/docs/OAuth2API.md) +- [OAuth2API API](https://github.com/ory/hydra-client-go/blob/master/docs/OAuth2API.md) - [OIDCApi API](https://github.com/ory/hydra-client-go/blob/master/docs/OidcAPI.md)