(self, long_url)
return r.json()
:param long_url:
        :return:
:param long_url:
        :return:
: param long_url : : return :
def get_longurl_data(self, long_url):
        """
        :param long_url:
        :return:
        """
        url_path = '/api/shorten?url=' + long_url
        r = requests.get(self.rest_url + url_path, headers=self.header)
        if r.status_code // 100 != 2:
            raise ObjectNotFound(r.json())
        return r.json()
def get_longurl_data ( self , long_url ) : url_path = '/api/shorten?url=' + long_url r = requests . get ( self . rest_url + url_path , headers = self . header ) if r . status_code // 100 != 2 : raise ObjectNotFound ( r . json ( ) ) return r . json ( )