code: def short(self, url):
          
  
          self.clean_url(url)
          shorten_url = f'{self.api_url}v3/shorten'
          params = {
              'uri': url,
              'access_token': self.api_key,
              'format': 'txt',
          }
          response = self._get(shorten_url, params=params)
          if response.ok:
              return response.text.strip()
          raise ShorteningErrorException(response.content)
docs: Short implementation for Bit.ly
          Args:
              url: the URL you want to shorten
  
          Returns:
              A string containing the shortened URL
  
          Raises:
              BadAPIResponseException: If the data is malformed or we got a bad
              status code on API response
              ShorteningErrorException: If the API Returns an error as response