code: def total_clicks(self, url):
          
          url = self.clean_url(url)
          clicks_url = f'{self.api_url}v3/link/clicks'
          params = {
              'link': url,
              'access_token': self.api_key,
              'format': 'txt'
          }
          response = self._get(clicks_url, params=params)
          if not response.ok:
              raise BadAPIResponseException(response.content)
  
          try:
              total_clicks = int(response.text)
          except (KeyError, TypeError) as e:
              logger.warning('Bad value from total_clicks response: %s', e)
              return 0
  
          return total_clicks
docs: Total clicks implementation for Bit.ly
          Args:
              url: the URL you want to get the total clicks count
  
          Returns:
              An int containing the total clicks count
  
          Raises:
              BadAPIResponseException: If the API Returns an error as response