Fix bug in ObtainAccessToken

It was trying to JSON parse the response even though the response was URL encoded.