def send(self, inbox, data, **kwargs):
    'Send the provided data to an inbox.'
    if (isinstance(data, dict) or isinstance(data, list)):
        self.__post_message(inbox, json.dumps(data), self.JSON_LD, **kwargs)
    elif isinstance(data, str):
        self.__post_message(inbox, data, self.JSON_LD, **kwargs)
    elif isinstance(data, Graph):
        ct = (self.__accept_post_options(inbox, **kwargs) or self.JSON_LD)
        self.__post_message(inbox, data.serialize(format=ct), ct, **kwargs)
    else:
        raise TypeError('You cannot send data of type {}.'.format(type(data)))
Send the provided data to an inbox.
def send(self, inbox, data, **kwargs):
    
    if (isinstance(data, dict) or isinstance(data, list)):
        self.__post_message(inbox, json.dumps(data), self.JSON_LD, **kwargs)
    elif isinstance(data, str):
        self.__post_message(inbox, data, self.JSON_LD, **kwargs)
    elif isinstance(data, Graph):
        ct = (self.__accept_post_options(inbox, **kwargs) or self.JSON_LD)
        self.__post_message(inbox, data.serialize(format=ct), ct, **kwargs)
    else:
        raise TypeError('You cannot send data of type {}.'.format(type(data)))