All URIs are relative to https://app.koyeb.com
Method | HTTP request | Description |
---|---|---|
CannyAuth | Post /v1/sso/canny | |
DiscourseAuth | Post /v1/sso/discourse |
CannyAuthReply CannyAuth(ctx).Body(body).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
body := map[string]interface{}{ ... } // map[string]interface{} |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SsoApi.CannyAuth(context.Background()).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SsoApi.CannyAuth``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CannyAuth`: CannyAuthReply
fmt.Fprintf(os.Stdout, "Response from `SsoApi.CannyAuth`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiCannyAuthRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
body | map[string]interface{} |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DiscourseAuthReply DiscourseAuth(ctx).Body(body).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
body := *openapiclient.NewDiscourseAuthRequest() // DiscourseAuthRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SsoApi.DiscourseAuth(context.Background()).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SsoApi.DiscourseAuth``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DiscourseAuth`: DiscourseAuthReply
fmt.Fprintf(os.Stdout, "Response from `SsoApi.DiscourseAuth`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiDiscourseAuthRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
body | DiscourseAuthRequest |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]