Skip to content

Latest commit

 

History

History
79 lines (49 loc) · 1.98 KB

QRCodesAPI.md

File metadata and controls

79 lines (49 loc) · 1.98 KB

\QRCodesAPI

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

GetQrCodeByAssetId

*os.File GetQrCodeByAssetId(ctx, assetId).Execute()

QR code for assets

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
assetId int32 The id of the asset

Other Parameters

Other parameters are passed through a pointer to a apiGetQrCodeByAssetIdRequest struct via the builder pattern

Name Type Description Notes

Return type

*os.File

Authorization

ApiKeyAuth, BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: image/png

[Back to top] [Back to API list] [Back to Model list] [Back to README]