I tried using chilkat Software. Please check examples.

https://www.example-code.com/vb6/gma...cess_token.asp