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