I am able to get "code" from google during user authentication process. I am getting error when trying to get access token.
My Request Url is this
My Code for Fetch response
var request = WebRequest.Create(url);
request.Method = requestMethod;
request.ContentType = "application/x-www-form-urlencoded";
request.ContentLength = 0;
WebResponse responseData = request.GetResponse();
Geting Exception at GetResponse()
:
The remote server returned an error: (400) Bad Request
I am not able to figure out what I am missing in code. Please help me out here