package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/baselinehq/pricingapi-client-golang"
)
func main() {
// Create an instance payload
instance := *openapiclient.NewGithubComBaselinehqGolangSharedTypesInstance()
// Initialize the client
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
// Call the Pricing API
resp, r, err := apiClient.DefaultAPI.
PricingComputePost(context.Background()).
Instance(instance).
Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.PricingComputePost`: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
return
}
// Successful response
fmt.Fprintf(os.Stdout, "Response from DefaultAPI.PricingComputePost: %v\n", resp)
}