I am using below post method for google account using curl but it gives me invalid_request error.
POST /o/oauth2/token HTTP/1.1 Host: accounts.google.com Con
I have used post array in CURL method and valid Google code and it worked for me