sitesvBeacons := client .SitesvBeacons ()
SitesvBeacons
Create Virtual Beacon
CreateSiteVBeacon (
ctx context .Context ,
siteId uuid .UUID ,
body * models .Vbeacon ) (
models .ApiResponse [models .Vbeacon ],
error )
Parameter
Type
Tags
Description
siteId
uuid.UUID
Template, Required
-
body
*models.Vbeacon
Body, Optional
Request Body
models.Vbeacon
ctx := context .Background ()
siteId := uuid .MustParse ("000000ab-00ab-00ab-00ab-0000000000ab" )
body := models.Vbeacon {
Major : models .ToPointer (0 ),
Message : models .ToPointer ("string" ),
Minor : models .ToPointer (0 ),
Name : models .ToPointer ("string" ),
Power : models .ToPointer (4 ),
PowerMode : models .ToPointer (models .BleConfigPowerModeEnum ("default" )),
Url : models .ToPointer ("string" ),
Uuid : models .ToPointer (uuid .MustParse ("6f4bf402-45f9-2a56-6c8b-7f83d3bc98e9" )),
WayfindingNodename : models .ToPointer ("string" ),
X : models .ToPointer (float64 (0 )),
Y : models .ToPointer (float64 (0 )),
}
apiResponse , err := sitesVBeacons .CreateSiteVBeacon (ctx , siteId , & body )
if err != nil {
log .Fatalln (err )
} else {
// Printing the result and response
fmt .Println (apiResponse .Data )
fmt .Println (apiResponse .Response .StatusCode )
}
Example Response (as JSON)
{
"created_time" : 0 ,
"id" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1" ,
"major" : 0 ,
"map_id" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1" ,
"message" : " string" ,
"minor" : 0 ,
"modified_time" : 0 ,
"name" : " string" ,
"org_id" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1" ,
"power" : 4 ,
"power_mode" : " default" ,
"site_id" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1" ,
"url" : " string" ,
"uuid" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1" ,
"wayfinding_nodename" : " string" ,
"x" : 0 ,
"y" : 0
}
Delete Site Virtual Beacon
DeleteSiteVBeacon (
ctx context .Context ,
siteId uuid .UUID ,
vbeaconId uuid .UUID ) (
http .Response ,
error )
Parameter
Type
Tags
Description
siteId
uuid.UUID
Template, Required
-
vbeaconId
uuid.UUID
Template, Required
-
``
ctx := context .Background ()
siteId := uuid .MustParse ("000000ab-00ab-00ab-00ab-0000000000ab" )
vbeaconId := uuid .MustParse ("000000ab-00ab-00ab-00ab-0000000000ab" )
resp , err := sitesVBeacons .DeleteSiteVBeacon (ctx , siteId , vbeaconId )
if err != nil {
log .Fatalln (err )
} else {
fmt .Println (resp .StatusCode )
}
Get Site Virtual Beacon Details
GetSiteVBeacon (
ctx context .Context ,
siteId uuid .UUID ,
vbeaconId uuid .UUID ) (
models .ApiResponse [models .Vbeacon ],
error )
Parameter
Type
Tags
Description
siteId
uuid.UUID
Template, Required
-
vbeaconId
uuid.UUID
Template, Required
-
models.Vbeacon
ctx := context .Background ()
siteId := uuid .MustParse ("000000ab-00ab-00ab-00ab-0000000000ab" )
vbeaconId := uuid .MustParse ("000000ab-00ab-00ab-00ab-0000000000ab" )
apiResponse , err := sitesVBeacons .GetSiteVBeacon (ctx , siteId , vbeaconId )
if err != nil {
log .Fatalln (err )
} else {
// Printing the result and response
fmt .Println (apiResponse .Data )
fmt .Println (apiResponse .Response .StatusCode )
}
Example Response (as JSON)
{
"created_time" : 0 ,
"id" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1" ,
"major" : 0 ,
"map_id" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1" ,
"message" : " string" ,
"minor" : 0 ,
"modified_time" : 0 ,
"name" : " string" ,
"org_id" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1" ,
"power" : 4 ,
"power_mode" : " default" ,
"site_id" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1" ,
"url" : " string" ,
"uuid" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1" ,
"wayfinding_nodename" : " string" ,
"x" : 0 ,
"y" : 0
}
Get List of Site Virtual Beacons
ListSiteVBeacons (
ctx context .Context ,
siteId uuid .UUID ,
limit * int ,
page * int ) (
models.ApiResponse [[]models.Vbeacon ],
error )
Parameter
Type
Tags
Description
siteId
uuid.UUID
Template, Required
-
limit
*int
Query, Optional
Default : 100
Constraints : >= 0
page
*int
Query, Optional
Default : 1
Constraints : >= 1
[]models.Vbeacon
ctx := context .Background ()
siteId := uuid .MustParse ("000000ab-00ab-00ab-00ab-0000000000ab" )
limit := 100
page := 1
apiResponse , err := sitesVBeacons .ListSiteVBeacons (ctx , siteId , & limit , & page )
if err != nil {
log .Fatalln (err )
} else {
// Printing the result and response
fmt .Println (apiResponse .Data )
fmt .Println (apiResponse .Response .StatusCode )
}
Example Response (as JSON)
[
{
"created_time" : 0 ,
"id" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1" ,
"major" : 0 ,
"map_id" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1" ,
"message" : " string" ,
"minor" : 0 ,
"modified_time" : 0 ,
"name" : " string" ,
"org_id" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1" ,
"power" : 4 ,
"power_mode" : " default" ,
"site_id" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1" ,
"url" : " string" ,
"uuid" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1" ,
"wayfinding_nodename" : " string" ,
"x" : 0 ,
"y" : 0
}
]
Update Site Virtual Beacon
UpdateSiteVBeacon (
ctx context .Context ,
siteId uuid .UUID ,
vbeaconId uuid .UUID ,
body * models .Vbeacon ) (
models .ApiResponse [models .Vbeacon ],
error )
Parameter
Type
Tags
Description
siteId
uuid.UUID
Template, Required
-
vbeaconId
uuid.UUID
Template, Required
-
body
*models.Vbeacon
Body, Optional
Request Body
models.Vbeacon
ctx := context .Background ()
siteId := uuid .MustParse ("000000ab-00ab-00ab-00ab-0000000000ab" )
vbeaconId := uuid .MustParse ("000000ab-00ab-00ab-00ab-0000000000ab" )
body := models.Vbeacon {
Major : models .ToPointer (0 ),
Message : models .ToPointer ("string" ),
Minor : models .ToPointer (0 ),
Name : models .ToPointer ("string" ),
Power : models .ToPointer (4 ),
PowerMode : models .ToPointer (models .BleConfigPowerModeEnum ("default" )),
Url : models .ToPointer ("string" ),
Uuid : models .ToPointer (uuid .MustParse ("6f4bf402-45f9-2a56-6c8b-7f83d3bc98e9" )),
WayfindingNodename : models .ToPointer ("string" ),
X : models .ToPointer (float64 (0 )),
Y : models .ToPointer (float64 (0 )),
}
apiResponse , err := sitesVBeacons .UpdateSiteVBeacon (ctx , siteId , vbeaconId , & body )
if err != nil {
log .Fatalln (err )
} else {
// Printing the result and response
fmt .Println (apiResponse .Data )
fmt .Println (apiResponse .Response .StatusCode )
}
Example Response (as JSON)
{
"created_time" : 0 ,
"id" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1" ,
"major" : 0 ,
"map_id" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1" ,
"message" : " string" ,
"minor" : 0 ,
"modified_time" : 0 ,
"name" : " string" ,
"org_id" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1" ,
"power" : 4 ,
"power_mode" : " default" ,
"site_id" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1" ,
"url" : " string" ,
"uuid" : " b069b358-4c97-5319-1f8c-7c5ca64d6ab1" ,
"wayfinding_nodename" : " string" ,
"x" : 0 ,
"y" : 0
}