

def total_clicks(self, url=None):
    url = (url or response.shorten)
    total_clicks = 0
    clicks_url = '{0}{1}'.format(self.api_url, 'v3/link/clicks')
    params = dict(link=url, access_token=self.token, format='txt')
    response = self._get(clicks_url, params=params)
    if response.ok:
        total_clicks = int(response.text)
    return total_clicks

dataset/ETHPy150Open ellisonleao/pyshorteners/pyshorteners/shorteners/bitly.py Bitly.total_clicks/VarMisuse@19/23 `self`->`response`