Page 1 of 1

Unable to connect to ssl

Posted: Fri Mar 17, 2023 9:45 am
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.

Re: Unable to connect to ssl

Posted: Fri Mar 17, 2023 9:45 am
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.

Re: Unable to connect to ssl

Posted: Fri Mar 17, 2023 9:45 am
by Lecreole74
Thanks,
I connecting using http ant work fine :lol: