spakle.py
def encode_payload(self, payload):
        """
        opposite of decode_payload, turn our dict back into
        an encoded form, ready to send to slack
        """
        payload = json.dumps(payload)
        payload = {b'payload': [payload]}
        data = urllib.parse.urlencode(payload, doseq=True).encode('ascii')
        #print("outgoing:", data)
        return data

        opposite of decode_payload, turn our dict back into
        an encoded form, ready to send to slack
        
opposite of decode_payload, turn our dict back into
an encoded form, ready to send to slack
opposite of decode_payload turn our dict back into an encoded form ready to send to slack
def encode_payload(self, payload):
        payload = json.dumps(payload)
        payload = {b'payload': [payload]}
        data = urllib.parse.urlencode(payload, doseq=True).encode('ascii')
        return data
def encode_payload ( self , payload ) : payload = json . dumps ( payload ) payload = { b'payload' : [ payload ] } data = urllib . parse . urlencode ( payload , doseq = True ) . encode ( 'ascii' ) return data
opposite of decode_payload, turn our dict back into
an encoded form, ready to send to slack
opposite of decode_payload turn our dict back into an encoded form ready to send to slack
"""
        opposite of decode_payload, turn our dict back into
        an encoded form, ready to send to slack
        """ #print("outgoing:", data)
self
payload