Пример #1
0
 def format(self, team_id, user_id):
     services_section = []
     authorized_apps = DynamoUtils.get_authorized_apps(team_id)
     for service in self.services:
         services_section.append(
             service.build_oauth_entry(team_id, user_id, authorized_apps))
     response = self.__build_response(services_section)
     return self.__build_response(services_section)
Пример #2
0
 def get_integrated_services(user_id) -> List[IntegratedService]:
     """
     Get services the user has integrated with
     """
     integrated_services: List[IntegratedService] = []
     apps = DynamoUtils.get_authorized_apps(user_id)
     if "jira" in apps:
         integrated_services.append(JiraApiService(user_id))
     if "zoom" in apps:
         integrated_services.append(ZoomApiService(user_id))
     return integrated_services