How do I connect to an API based on the string value given in the environment config? Trying to create a login http request for token authentication.