Trying to get a token for making api calls against a service. Code is as follows... Keep getting a 401 Unauthorized but making the same request with Curl succeeds. Missing somet