I was hoping to use
insteon.docs.apiary.io/#reference/a
...
Which allows passing the username and password, so It doesn't require password entry in a web browser. I think using this method the session stuff shouldn't be needed.
Debug output:
OAuth client: Checking if OAuth access token was already retrieved from
PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/rom/insteon/insteon.php:6) in /home/rom/insteon/oauth_client/oauth_client.php on line 1500
PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/rom/insteon/insteon.php:6) in /home/rom/insteon/oauth_client/oauth_client.php on line 1500
OAuth client: A valid access token is not available
OAuth client: Getting the access token using the username and password
PHP Notice: Undefined index: HTTP_HOST in /home/rom/insteon/oauth_client/oauth_client.php on line 1358
PHP Notice: Undefined index: REQUEST_URI in /home/rom/insteon/oauth_client/oauth_client.php on line 1358
OAuth client: Accessing the OAuth access token at
OAuth client: Error: it was not possible to open the OAuth access token URL: it was not specified the protocol type argument
Error: it was not possible to open the OAuth access token URL: it was not specified the protocol type argument