'Must of the data is sent as part of query params (eeww),
but in newer versions, userdata argument can be sent as a
urlencoded data in the request body.'

def encode_data(self, data):

    if data:
        data = urlencode(data)
    return data
