Hello;
I'm new to Teamviewer API interface and I find the documentation quite bad since there are no code examples anywhere regarding javascript. I need the code examples from the functions in all the sections within the API documentation, so know what I'm doing wrong.
I'm getting error 405 all the time, even for the ping request. If I don't set any header the request ends correctly, but if I add the
request.setRequestHeader('Authentication, '4354208-XXXXXXXXXXXXXXXXX');
I end having a nice 405 error along with this error:
Failed to load https://webapi.teamviewer.com/api/v1/ping: Response for preflight does not have HTTP ok status.
Can someone help giving some extra documentation on complete javascript (not jquery) function examples on how to do a couple of things? this is the first API documentation I see in my life without any example inside
.
Thanks.