Example #1
0
    async def script(self, method, *args, encode_json=True, response_id=True):
        """
		Execute scripted call.

		:param method: Scripted method name
		:param args: Arguments
		:param encode_json: Are the arguments dictionary, should it be encoded? (Then only provide the first arg).
		:param response_id: Does the call work on response_id's?
							True by default, set to false to not expect response with response_id
		:return: Future.
		"""
        query = ScriptQuery(self,
                            method,
                            *args,
                            encode_json=encode_json,
                            response_id=response_id)
        return await query.execute()