code: def _construct_api_path(self, version):
          
  
          V2_PATH = 'api/'
          V3_PATH = 'api/s/' + self.site_id + '/'
  
          if(version == 'v2'):
              return V2_PATH
          if(version == 'v3'):
              return V3_PATH
          if(version == 'v4'):
              return V3_PATH
          if(version == 'v5'):
              return V3_PATH
          else:
              return V2_PATH
docs: Returns valid base API path based on version given
  
             The base API path for the URL is different depending on UniFi server version.
             Default returns correct path for latest known stable working versions.