Updated auth-code.getToken to support specifying HTTP method

Certain APIs implement the OAuth2 protocol incorrectly by providing the access token via a GET request.