package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/baselinehq/pricingapi-client-golang"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DefaultAPI.
ProvidersGet(context.Background()).
Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ProvidersGet`: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
return
}
// response from `ProvidersGet`: ProviderConfigs
fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.ProvidersGet`: %v\n", resp)
}