All URIs are relative to https://api.notefile.net
| Method | HTTP request | Description |
|---|---|---|
| GetBillingAccount | Get /v1/billing-accounts/{billingAccountUID} | |
| GetBillingAccountBalanceHistory | Get /v1/billing-accounts/{billingAccountUID}/balance-history | |
| GetBillingAccounts | Get /v1/billing-accounts |
GetBillingAccount200Response GetBillingAccount(ctx, billingAccountUID).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/blues/notehub-go"
)
func main() {
billingAccountUID := "00000000-0000-0000-000000000001" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BillingAccountAPI.GetBillingAccount(context.Background(), billingAccountUID).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BillingAccountAPI.GetBillingAccount``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetBillingAccount`: GetBillingAccount200Response
fmt.Fprintf(os.Stdout, "Response from `BillingAccountAPI.GetBillingAccount`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| billingAccountUID | string |
Other parameters are passed through a pointer to a apiGetBillingAccountRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetBillingAccountBalanceHistory200Response GetBillingAccountBalanceHistory(ctx, billingAccountUID).StartDate(startDate).EndDate(endDate).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/blues/notehub-go"
)
func main() {
billingAccountUID := "00000000-0000-0000-000000000001" // string |
startDate := int32(1628631763) // int32 | Start date for filtering results, specified as a Unix timestamp (optional)
endDate := int32(1657894210) // int32 | End date for filtering results, specified as a Unix timestamp (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BillingAccountAPI.GetBillingAccountBalanceHistory(context.Background(), billingAccountUID).StartDate(startDate).EndDate(endDate).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BillingAccountAPI.GetBillingAccountBalanceHistory``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetBillingAccountBalanceHistory`: GetBillingAccountBalanceHistory200Response
fmt.Fprintf(os.Stdout, "Response from `BillingAccountAPI.GetBillingAccountBalanceHistory`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| billingAccountUID | string |
Other parameters are passed through a pointer to a apiGetBillingAccountBalanceHistoryRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
startDate | int32 | Start date for filtering results, specified as a Unix timestamp | endDate | int32 | End date for filtering results, specified as a Unix timestamp |
GetBillingAccountBalanceHistory200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetBillingAccounts200Response GetBillingAccounts(ctx).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/blues/notehub-go"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BillingAccountAPI.GetBillingAccounts(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BillingAccountAPI.GetBillingAccounts``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetBillingAccounts`: GetBillingAccounts200Response
fmt.Fprintf(os.Stdout, "Response from `BillingAccountAPI.GetBillingAccounts`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetBillingAccountsRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]