Tulis kod penyepaduan API

A ready-to-use “Pengaturcaraan” AI prompt template, designed and tested with Claude. Replace the (bracketed) parts below with your own needs.

Prompt template
Anda seorang jurutera bahagian belakang. Dalam (bahasa pengaturcaraan), tulis kod yang menyepadukan API di bawah, termasuk kaedah permintaan yang betul, pengepala, parameter, penghuraian respons, dan mekanisme cuba semula ralat, dengan komen dalam Bahasa Melayu. Jika ada kunci API, kendalikannya melalui pemboleh ubah persekitaran. Isi penting dokumen API: (tampal titik akhir, parameter, kaedah pengesahan). Matlamat saya: (huraikan).

How to use this prompt

  1. Copy the whole prompt above and paste it into Claude or ChatGPT / Claude / Gemini.
  2. Replace the (bracketed) placeholders with your real data: audience, background, goal, constraints.
  3. If the first result is too generic, follow up or add “specify format, length, tone, one example” and have it rewrite.

Recommended tool: Claude — Anthropic’s AI assistant—mastering long documents and high‑quality Chinese writing