Unable to connect to ssl

Moderator: Telldus

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

Unable to connect to ssl

Post by Lecreole74 »

Hello,
I'm french, and want to use Telldus API Explorer.
In common.php they are 2 vars to define :
define('KEY', '');
define('SECRET', '');
what KEY and SECRET is it?
on http://api.telldus.com/keys/showToken page they are 4 :
Public key: FE*****
Private key: ZU*****
Token: 2c*****
Token secret: a2****
When i use , my page return error :
HTTP_OAuth_Exception: Unable to connect to ssl://api.telldus.com:443. Error: stream_socket_client()

I want just to access list of devices with there Ids.
how can to do?

PS : Telldus Account API work fine.

thanks.
micke.prag
Site Admin
Posts: 2243
Joined: Fri Mar 17, 2023 9:45 am
Location: Lund
Contact:

Re: Unable to connect to ssl

Post by micke.prag »

Read more about OAuth here:
http://hueniverse.com/oauth/

You need one key-pair for your application (defined in common.php) and a token bound to your user.
You can either hardcode the token och look at our example on how to fetch it programatically.
Lecreole74 wrote:When i use , my page return error :
HTTP_OAuth_Exception: Unable to connect to ssl://api.telldus.com:443. Error: stream_socket_client()
Your ssl library problably lacks the root-certificate for our https-certificate. You can either add it or try connecting using http instead.
Micke Prag
Software
Telldus Technologies
Lecreole74
Posts: 2
Joined: Fri Mar 17, 2023 9:45 am

Re: Unable to connect to ssl

Post by Lecreole74 »

Thanks,
I connecting using http ant work fine :lol:
Post Reply