How do I get my OAuth 2.0 access token

Solution is posted in this thread! Error while requesting the token using the OAuth 2.0 authentication - #8 by Shrinivas.Kandakur