def login(self, email, password):
r = requests.post('<STR_LIT>'.format(self._api_endpoint),<EOL>json={'<STR_LIT:email>': email, '<STR_LIT:password>': password})<EOL>r.raise_for_status()<EOL>return r.json()['<STR_LIT>']<EOL>
Authenticate a user with SignalFx to acquire a session token.

        Note that data ingest can only be done with an organization or team API
        access token, not with a user token obtained via this method.

        Args:
            email (string): the email login
            password (string): the password
        Returns a new, immediately-usable session token for the logged in user.