Can not add account for custom Sonos service

后端 未结 1 1587
既然无缘
既然无缘 2021-01-26 05:52

I\'ve created a Sonos music service and added it to my speaker with customsd. Both endpoint urls (regular and secure) are available. The service is successfully added to the spe

相关标签:
1条回答
  • 2021-01-26 06:24

    Are you setting the authentication type to Session ID when you're adding the service from customsd?

    Here is an example of how the function should look like (in PHP):

    public function getSessionId($args)
    {
        $user = $args->username;
        $pass = $args->password;
        //Check the user and pass in your service
        //if login successful, set $sessionId to the session ID of the user
        //else if login unsuccessful, throw new SoapFault('Client.LoginInvalid','Client.LoginInvalid');
        return array('getSessionIdResult' => $sessionId);
    }
    
    0 讨论(0)
提交回复
热议问题