MCPcopy
hub / github.com/smallfawn/QLScriptPublic / make_new_year_video

Method make_new_year_video

tianyi.py:347–374  ·  view source on GitHub ↗
(self, mobile: str, template_data: dict)

Source from the content-addressed store, hash-verified

345 return self.request_plain("/hapi/de/api", params)
346
347 def make_new_year_video(self, mobile: str, template_data: dict) -> dict:
348
349 template_id = template_data.get("templateId", "")
350 template_conf_id = template_data.get("templateConfId", "")
351 video_name = template_data.get("videoName", "")
352 user_words = template_data.get("userWords", "")
353 random_suffix = random.randint(100000, 999999)
354 video_name_with_suffix = f"{video_name}{random_suffix}"
355
356 params = {
357 "mobile": mobile,
358 "openId": "",
359 "background": template_id,
360 "userPhotos": "",
361 "userWords": user_words,
362 "templateName": "",
363 "videoName": video_name_with_suffix,
364 "templateId": template_id,
365 "templateConfId": template_conf_id,
366 "aid": "ai090",
367 "inviterMobile": "",
368 "arrangeId": "",
369 "autoOrderUgc": 0,
370 "aiGatewayImagMakeId": "",
371 "fromType": "",
372 "sessionId": ""
373 }
374 return self.request_encrypted("/hapi/diy_video/au/template_make_add_v2", params)
375
376 def ai_agent_chat(self, mobile: str, content: str, agent_id: str = "", from_act: str = "cny", session_id: str = "") -> dict:
377 params = {

Callers 1

process_new_year_lotteryFunction · 0.95

Calls 2

request_encryptedMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected