(self, reference=False, label_format="PDF")
return res.json().get("Label", False)
Get shipping label for the given ref
        :param str reference -- public shipping reference
        :returns: base64 with pdf label or False
Get shipping label for the given ref
        :param str reference -- public shipping reference
        :returns: base64 with pdf label or False
Get shipping label for the given ref : param str reference -- public shipping reference : returns : base64 with pdf label or False
def print_shipment(self, reference=False, label_format="PDF"):
        """Get shipping label for the given ref
        :param str reference -- public shipping reference
        :returns: base64 with pdf label or False
        """
        res = self._send_api_request(
            request_type="GET",
            url=(
                DHL_PATH + "shipment?"
                "Year={}&Tracking={}&Action=PRINT"
                "&LabelFrom={}&LabelTo={}&Format={}".format(
                    self.year, reference, 1, 1, label_format
                )
            ),
        )
        return res.json().get("Label", False)
def print_shipment ( self , reference = False , label_format = "PDF" ) : res = self . _send_api_request ( request_type = "GET" , url = ( DHL_PATH + "shipment?" "Year={}&Tracking={}&Action=PRINT" "&LabelFrom={}&LabelTo={}&Format={}" . format ( self . year , reference , 1 , 1 , label_format ) ) , ) return res . json ( ) . get ( "Label" , False )