Jun 13 2019 08:31 AM
Hello,
I am using the Graph api (still testing) to access outlook and I want to let it run in the backend with VB. How can i get the authorization code with VB? In my testing scenario it works fine, if i request the token with VB (2nd Endpoint in V2). But this only works fine with the authorization code that I requested before with my browser (1st Endpoint V2, url: https://login.microsoftonline.com/TENANT/oauth2/v2.0/authorize?client_id=CLIENTID&response_type=...)
How does it work to get the code in the backend? I have tryed something like this, but the authorization fails:
strURL = https://login.microsoftonline.com/TENANT/oauth2/v2.0/authorize?client_id=CLIENTID&response_type=...
strUser= "user@example.com"
strPassword= "XXXX"