forked from loafle/openapi-generator-original
This reverts commit 1562afea39.
This commit is contained in:
@@ -36,7 +36,7 @@ func main() {
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
api_client := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := api_client.UsageApi.AnyKey(context.Background()).Execute()
|
||||
if err.Error() != "" {
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `UsageApi.AnyKey``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
@@ -97,7 +97,7 @@ func main() {
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
api_client := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := api_client.UsageApi.BothKeys(context.Background()).Execute()
|
||||
if err.Error() != "" {
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `UsageApi.BothKeys``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
@@ -158,7 +158,7 @@ func main() {
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
api_client := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := api_client.UsageApi.KeyInHeader(context.Background()).Execute()
|
||||
if err.Error() != "" {
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `UsageApi.KeyInHeader``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
@@ -219,7 +219,7 @@ func main() {
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
api_client := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := api_client.UsageApi.KeyInQuery(context.Background()).Execute()
|
||||
if err.Error() != "" {
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `UsageApi.KeyInQuery``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user