def get_user_auth(self, f): x = XMLBuilder('QUERIES') with x.QUERY(cmd='REGISTER'): x.CLIENT(self.CLIENT_ID_TAG) response = self.query_eyeq(x) self.USER = response['USER'] self.config.USER = self.USER save_config(f, self.config)
def __query_xml(self): x = XMLBuilder('QUERIES') with x.AUTH: x.CLIENT(self.CLIENT_ID_TAG) x.USER(self.USER) x.COUNTRY(self.COUNTRY) x.LANG(self.LANG) return x