การผสานรวมโดยใช้ AI ช่วย
ใช้ผู้ช่วยเขียนโค้ด AI เพื่อผสานรวมและกำหนดค่า Pushwoosh Unity SDK ในโปรเจกต์ของคุณ โดยการเชื่อมต่อผู้ช่วยของคุณกับเซิร์ฟเวอร์ Context7 MCP จะทำให้สามารถเข้าถึงเอกสารปลั๊กอินล่าสุด ตัวอย่างโค้ด และข้อมูลอ้างอิง API ซึ่งจะช่วยให้สามารถสร้างโค้ดการผสานรวมที่ถูกต้องและใช้งานได้
วิธีการทำงาน
Anchor link toContext7 คือเซิร์ฟเวอร์ MCP ที่ให้เอกสารไลบรารีล่าสุดแก่ผู้ช่วย AI เมื่อผู้ช่วยของคุณเข้าถึง Context7 ได้ ก็จะสามารถดึงเอกสาร Pushwoosh Unity SDK ล่าสุด, code snippets และข้อมูลอ้างอิง API ได้โดยตรงระหว่างการสนทนา แทนที่จะต้องพึ่งพาข้อมูลการฝึกที่อาจล้าสมัย
ID ไลบรารีของ Pushwoosh Unity SDK บน Context7 คือ: /Pushwoosh/pushwoosh-unity
การตั้งค่า Context7
Anchor link toเพิ่ม Context7 ไปยังการกำหนดค่า MCP ของผู้ช่วย AI ของคุณ:
รันคำสั่งต่อไปนี้:
claude mcp add --scope user context7 -- npx -y @upstash/context7-mcp --api-key YOUR_API_KEYเพิ่มไปยังไฟล์กำหนดค่า MCP ของคุณ (.cursor/mcp.json หรือไฟล์ที่เทียบเท่า):
{ "mcpServers": { "context7": { "command": "npx", "args": ["-y", "@upstash/context7-mcp@latest"] } }}ตัวอย่าง Prompts
Anchor link toเมื่อตั้งค่า Context7 เรียบร้อยแล้ว คุณสามารถใช้ natural language prompts เพื่อผสานรวม SDK ได้ ด้านล่างนี้คือ prompts ที่พร้อมใช้งานสำหรับงานทั่วไป
การผสานรวม SDK พื้นฐาน
Anchor link toIntegrate Pushwoosh Unity SDK into my Unity project.
Requirements:- Install com.pushwoosh.unity.core and com.pushwoosh.unity.android via UPM- Initialize Pushwoosh with my App ID- Register for push notifications and handle OnPushNotificationsReceived and OnPushNotificationsOpened events
Use Context7 MCP to fetch Pushwoosh Unity SDK documentation.Tags และการแบ่งกลุ่มผู้ใช้
Anchor link toShow me how to use Pushwoosh tags in a Unity app for user segmentation.I need to set string, int, and list tags, get tags, and set user ID.
Use Context7 MCP to fetch Pushwoosh Unity SDK documentation for SetStringTag and GetTags.Events และการติดตามการซื้อ
Anchor link toIntegrate Pushwoosh event tracking in my Unity app. Show me how to:- Post custom events with attributes- Track in-app purchases with SendPurchase
Use Context7 MCP to fetch Pushwoosh Unity SDK documentation for PostEvent.สิ่งที่ผู้ช่วย AI ได้รับ
Anchor link toเมื่อผู้ช่วยของคุณสอบถาม Context7 เกี่ยวกับ Pushwoosh Unity SDK มันจะได้รับ:
- คำแนะนำในการติดตั้ง — การตั้งค่า UPM ผ่าน npm registry และ Git URL
- ข้อมูลอ้างอิง API — public classes, methods และคำจำกัดความของ event
- ตัวอย่างโค้ด — C# snippets สำหรับกรณีการใช้งานทั่วไป
- การตั้งค่าแพลตฟอร์ม — ขั้นตอนการกำหนดค่าสำหรับ iOS และ Android
- รายละเอียดการกำหนดค่า — พารามิเตอร์การเริ่มต้น, การตั้งค่า EDM4U