Help with TellStick ZNet local API

Moderator: Telldus

Post Reply
sebba12
Posts: 1
Joined: Thu Jan 18, 2018 11:08 am

Help with TellStick ZNet local API

Post by sebba12 » Thu Jan 18, 2018 11:08 am

Hello I have been trying to figure out on how to authenticate the app using invoke-webrequest, I have been able to generate a token, but it seems like I can't (don't know how) the send the app name in the request.

Anyone know this? I don't the what command and where to supply it, I have tried to send it in the header like this:

Code: Select all

#$headers = @{app="testapp"}
#$test = Invoke-WebRequest "http://192.168.0.25/api/token" -Method Put -Headers $headers -UseBasicParsing
I get a token back but when I come to the final step i get error { "error": "No app was configured in the token" } anyone have a clue on how to do this?
Thanks.

Post Reply