Go openapi client for the Microsoft Security Response Center (MSRC) API
This API client was generated by using the OpenAPI Generator project.
Please have a look at the generated README for additional information.
The following code shows how the client can be used to get the Patchday data for a specific month.
Please refer to the official documentation for advanced usage of this client.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/rhaist/go-MSRC/openapi"
)
func main() {
options := *openapiclient.NewUpdateODataQueryOptions() // UpdateODataQueryOptions | OData query options (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.UpdatesAPI.Updates(context.Background()).Options(options).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UpdatesAPI.Updates``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
This software is distributed under the MIT license. Please have a look at the LICENSE file in the source distribution.