(self, short_url_code, secret=None)
return resp
:param short_url_code:
        :param secret:
        :return:
:param short_url_code:
        :param secret:
        :return:
: param short_url_code : : param secret : : return :
def unshorten(self, short_url_code, secret=None):
        """
        :param short_url_code:
        :param secret:
        :return:
        """
        short_code = urlparse(short_url_code).path.strip('/')
        url_path = '/api/unshorten?url=' + self.rest_url + '/' + short_code
        r = self.call(url_path, headers=dict(secret_key=secret))
        resp = r.json()
        if resp.get('short_code'):
            resp['short_url'] = self.makeurl(self.HOSTNAME, resp['short_code'])
        return resp
def unshorten ( self , short_url_code , secret = None ) : short_code = urlparse ( short_url_code ) . path . strip ( '/' ) url_path = '/api/unshorten?url=' + self . rest_url + '/' + short_code r = self . call ( url_path , headers = dict ( secret_key = secret ) ) resp = r . json ( ) if resp . get ( 'short_code' ) : resp [ 'short_url' ] = self . makeurl ( self . HOSTNAME , resp [ 'short_code' ] ) return resp