code: def get_action_groups(self):
          
          header = BASE_HEADERS.copy()
          header['Cookie'] = self.__cookie
  
          request = requests.get(BASE_URL + "getActionGroups",
                                 headers=header,
                                 timeout=10)
  
          if request.status_code != 200:
              self.__logged_in = False
              self.login()
              self.get_action_groups()
              return
  
          try:
              result = request.json()
          except ValueError:
              raise Exception(
                  "get_action_groups: Not a valid result for ")
  
          if 'actionGroups' not in result.keys():
              return None
  
          groups = []
  
          for group_data in result['actionGroups']:
              group = ActionGroup(group_data)
              groups.append(group)
  
          return groups
docs: Get all Action Groups.
  
          :return: List of Action Groups