Hi All.
Bit of a newbie here, needing some help!
I have been playing around with HTTP calls with labview and getting back Header and Body data ok on some IOT devices.
Using the HTTP pallet in Labview I am trying to connect to my MiHome products via their exposed API.
https://mihome4u.co.uk/docs/api-documentation/subdevices-api/list-all-subdevices
Using Postman - I do the Following GET command...
Get: https://mihome4u.co.uk/api/v1/subdevices/list
with Basic AUTH with my username and password. This returns the expected json....
Trying to do a similar thing in Labview i get a body message of "Access denied"
{"status":"access-denied","time":null,"flags":{},"data":{"message":"Access to subdevices/list is not permitted."}}
The Header comes back ok:
HTTP/1.1 200 OK
Date: Wed, 21 Nov 2018 12:17:08 GMT
Content-Type: application/json
Content-Length: 114
Connection: keep-alive
Set-Cookie: __cfduid=d99f2a227e93c2577fe894128d74f8c581542802628; expires=Thu, 21-Nov-19 12:17:08 GMT; path=/; domain=.mihome4u.co.uk; HttpOnly
Status: 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: *
ETag: W/"82762f798be137d965924687297f1780"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: b29640f8-7cb8-44e7-b2da-d5a7ced5d5cd
X-Runtime: 0.001099
Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Server: cloudflare
CF-RAY: 47d3176c78243446-LHR
Now - I think its related to the Auth not being set up to allow access..... I've seen a few examples but don't have the knowledge to get around it..... (No examples for MiHome by the way)
Code snippet attached..... just a pile of HTTP VI's trying to get a response!
Please help!!
Cheers
James