def __sendToPile__(self, pile, trade_id=None, item_id=None):
method = '<STR_LIT>'<EOL>url = '<STR_LIT>'<EOL>if not isinstance(item_id, (list, tuple)):<EOL><INDENT>item_id = (item_id,)<EOL><DEDENT>data = {"<STR_LIT>": [{'<STR_LIT>': pile, '<STR_LIT:id>': str(i)} for i in item_id]}<EOL>rc = self.__request__(method, url, data=json.dumps(data))<EOL>if rc['<STR_LIT>'][<NUM_LIT:0>]['<STR_LIT:success>']:<EOL><INDENT>self.logger.info("<STR_LIT>".format(trade_id, item_id, pile))<EOL><DEDENT>else:<EOL><INDENT>self.logger.error("<STR_LIT>".format(trade_id, item_id, pile,<EOL>rc['<STR_LIT>'][<NUM_LIT:0>][<EOL>'<STR_LIT>']))<EOL><DEDENT>return rc['<STR_LIT>'][<NUM_LIT:0>]['<STR_LIT:success>']<EOL>
Send to pile.

        :params trade_id: (optional?) Trade id.
        :params item_id: Iteam id.