ProfileApi
Method
HTTP request
Description
ProfilesGet
var result ProfilesGet200Response = ProfilesGet(ctx)
.Execute()Example
package main
import (
"context"
"fmt"
"os"
billing "github.com/ionos-cloud/sdk-go-bundle/products/billing"
"github.com/ionos-cloud/sdk-go-bundle/shared"
)
func main() {
configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := billing.NewAPIClient(configuration)
resource, resp, err := apiClient.ProfileApi.ProfilesGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ProfileApi.ProfilesGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
// response from `ProfilesGet`: ProfilesGet200Response
fmt.Fprintf(os.Stdout, "Response from `ProfileApi.ProfilesGet`: %v\n", resource)
}Path Parameters
Other Parameters
Return type
HTTP request headers
Last updated
Was this helpful?