All URIs are relative to https://name.eliona.io/v2
Method | HTTP request | Description |
---|---|---|
GetQrCodeByAssetId | Get /qr-codes/assets/{asset-id} | QR code for assets |
*os.File GetQrCodeByAssetId(ctx, assetId).Execute()
QR code for assets
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/eliona-smart-building-assistant/go-eliona-api-client/v2"
)
func main() {
assetId := int32(4711) // int32 | The id of the asset
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.QRCodesAPI.GetQrCodeByAssetId(context.Background(), assetId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `QRCodesAPI.GetQrCodeByAssetId``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetQrCodeByAssetId`: *os.File
fmt.Fprintf(os.Stdout, "Response from `QRCodesAPI.GetQrCodeByAssetId`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
assetId | int32 | The id of the asset |
Other parameters are passed through a pointer to a apiGetQrCodeByAssetIdRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: image/png
[Back to top] [Back to API list] [Back to Model list] [Back to README]