EvnApi
Method
HTTP request
Description
EvnFindByPeriod
var result Evn = EvnFindByPeriod(ctx, contract, period)
.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() {
contract := int32(56) // int32 | Contract number
period := "2020-01" // string | Period of interest in format YYYY-MM
configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := billing.NewAPIClient(configuration)
resource, resp, err := apiClient.EvnApi.EvnFindByPeriod(context.Background(), contract, period).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `EvnApi.EvnFindByPeriod``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
// response from `EvnFindByPeriod`: Evn
fmt.Fprintf(os.Stdout, "Response from `EvnApi.EvnFindByPeriod`: %v\n", resource)
}Path Parameters
Name
Type
Description
Notes
Other Parameters
Return type
HTTP request headers
EvnGet
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Return type
HTTP request headers
Last updated
Was this helpful?