This look like documentation is not complete, at least for me. Please add there an informationa about how to get authorization code.
Of course I found this on VBS example:
authorizationCode = "" '<-- Visit https://webapi.teamviewer.com/api/v1/oauth2/authorize?response_type=code&client_id=YOURCLIENTIDHERE
' Login, grant the permissions (popup) and put the code shown in the authorizationCode variable here
But I think the documentation in provided HTML link should be extended.
OAuth is a common protocol. This protocolallows the authorization oftheSecurityAPIwith a standardand simple method for both portable applications,bothforfixed andpcwebapplications.
For application developers is a method to publish andinteract withprotected data.OAuthprovidesservice providersaccessby third partiesto user datawhile protectingtheir credentialssimultaneously. For example,it allows the user togive to asite,calledconsumer, access to your information onanother site,saidservice provider,without sharing its identity.
you'll find an example of using API integration after execute OAuth Authentication, done using .Net for a very little and specific task (create a session), but the logic is the same for quite all other task done via TeamViewer API.