Opentok-Python-SDK icon indicating copy to clipboard operation
Opentok-Python-SDK copied to clipboard

XML API Deprecated Being Used in Python SDK

Open ethauber opened this issue 3 years ago • 2 comments

The Tokbox developer docs say that the XML API is deprecated here https://tokbox.com/developer/rest/#:~:text=This%20XML%20version%20of%20the%20API%20call%20is%20deprecated Yet, I see it is still being used in the Python SDK here https://github.com/opentok/Opentok-Python-SDK/blob/v3.2.0/opentok/opentok.py#L417 as the default. When will this be fixed? Is there something that I may have misunderstood?

ethauber avatar Apr 07 '22 22:04 ethauber

I also submitted this to customer support. There was a question on if there is a specific issue.

Could you please let me know if you are facing any specific issue regarding Python SDK?

The specific issues are that we do not want to build on top of Vonage's deprecated API and that there are known vulnerabilities with XML APIs. Also, we will have to redo, or implement twice, our current tests since the mocker that we use with requests has to supply XML responses instead of the usual JSON responses.

ethauber avatar Apr 08 '22 14:04 ethauber

Hi @ethauber it appears the create_session method has not been updated for a couple of years. It could probably use an update, will discuss this internally and feed back to you.

maxkahan avatar Oct 07 '22 17:10 maxkahan