(self, short_code, secret_key=None)
return resp
Pass a short url code and it returns the stats of of the url.

        :param short_code:
        :param secret_key:
        :return: dict
Pass a short url code and it returns the stats of of the url.
Pass a short url code and it returns the stats of of the url .
def link_stats(self, short_code, secret_key=None):
        """Pass a short url code and it returns the stats of of the url.

        :param short_code:
        :param secret_key:
        :return: dict
        """
        # make sure + is added in the code
        short_code = urlparse(short_code).path.strip('/')
        short_code = short_code.strip('+') + '+'
        headers = self.header
        headers.update(dict(secret_key=secret_key))
        r = self.call(short_code, return_for_status=401)
        resp = r.json()
        if int(r.status_code) == 401:
            if resp['sub_status'] == 101:
                self.refresh_access_token()
                if self.header is None:
                    raise UnAuthorized('Please login again to continue')
                r = self.call(short_code)
                resp = r.json()
        if resp.get('short_code'):
            resp['short_url'] = self.makeurl(self.HOSTNAME, resp['short_code'])
        return resp
def link_stats ( self , short_code , secret_key = None ) : # make sure + is added in the code short_code = urlparse ( short_code ) . path . strip ( '/' ) short_code = short_code . strip ( '+' ) + '+' headers = self . header headers . update ( dict ( secret_key = secret_key ) ) r = self . call ( short_code , return_for_status = 401 ) resp = r . json ( ) if int ( r . status_code ) == 401 : if resp [ 'sub_status' ] == 101 : self . refresh_access_token ( ) if self . header is None : raise UnAuthorized ( 'Please login again to continue' ) r = self . call ( short_code ) resp = r . json ( ) if resp . get ( 'short_code' ) : resp [ 'short_url' ] = self . makeurl ( self . HOSTNAME , resp [ 'short_code' ] ) return resp