Telldus API Authentication problems

Moderator: Telldus

Post Reply
ketels
Posts: 2
Joined: Fri Mar 17, 2023 9:45 am

Telldus API Authentication problems

Post by ketels »

Hi,
I'm trying to get my head around the API, but I just cant get it to work.

I have successfully made a devices/list call by adding my Authorization header, but when I try to get info from one of my sensors/devices I get a 401 telling me "OAuth Verification Failed: Verification of signature failed".
From my Googling it seems that I might be missing a oauth_verifier, but I don't understand how to receive the verifier. Do I need to get it via some authentication call or what?

Also the documentation on api.telldus.com doesn't say how to apply the id to the sensor/info call. I have tried both as a querystring and as a header parameter called id: 123456

Here is how my Header looks like.

Code: Select all

Authorization: OAuth oauth_consumer_key="**********",oauth_nonce="**********",oauth_signature="**********",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1460616060",oauth_token="**********",oauth_version="1.0"
I really hope someone can help me with this.
arneolav
Posts: 281
Joined: Fri Mar 17, 2023 9:45 am

Re: Telldus API Authentication problems

Post by arneolav »

Hi

To get sensor history values I'm setting params like this:

Variables:
REQUEST_XML = '/xml'; { Get XML response }
SENSOR_HISTORY = '/sensor/history';
PARAM:='id='+id+'&' +'from='+ Timefrom+'&' +'to=' + TimeTo;

The sign in apostrophs '&' should be ampersand.

Request(REQUEST_XML, SENSOR_HISTORY, PARAM )

Secret Keys must be Ansi.
API_URLs = 'https://api.telldus.com'; ---> Did not work with Win 7 and XP
Hand use 'http://api.telldus.com'; ---> ok, but not recommended(!)


Hope this helps.
Post Reply