رہنمائے میڈیاویکی اےپیآئی
ذیل میں میڈیاویکی اےپیآئی کی دستاویزی تفصیلات درج ہیں جو خودکار طور پر لکھی گئی ہیں۔
دستاویز اور مثالوں کے لیے ملاحظہ فرمائیں: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
command=createentry
(main | readinglists | createentry)
- یہ ماڈیول اندرونی یا غیر مستحکم ہے۔ چنانچہ بغیر کسی اطلاع کے اس کا طریقۂ کار تبدیل ہو سکتا ہے۔
- اس ماڈیول کے لیے اختیارات مطالعہ درکار ہیں۔
- اس ماڈیول کو اختیارات تحریر درکار ہیں۔
- یہ ماڈیول فقط POST کی درخواستیں قبول کرتا ہے۔
- ماخذ: ReadingLists
- اجازت نامہ: GPL-2.0-or-later
موجودہ صارف کی فہرست میں ایک نیا صفحہ شامل کیجیے۔
List entries must be unique. Pages are not limited to the wiki where the API is accessed. The user must have fewer than 5000 (non-deleted) entries in the list.
مخصوص پیرامیٹر:
دیگر عمومی پیرامیٹر دستیاب ہیں۔
- list
List ID.
- یہ پیرامیٹر لازمی ہے۔
- Type: integer
- project
Project name of the wiki hosting the page. (Typically this is the domain name of the wiki.) Required unless doing batch creation.
- 255 بائٹ سے زیادہ نہیں ہو سکتا۔
- title
صفحہ کا عنوان۔
- 383 بائٹ سے زیادہ نہیں ہو سکتا۔
- batch
Batch data for creating multiple list entries (in the same list) in a single request, in the form of a JSON array with one or more objects with project and title fields.
مثالیں
- Add the page Dog from project en.wikipedia.org to the list with ID 33.
- api.php?action=readinglists&command=createentry&list=33&project=https%3A%2F%2Fen.wikipedia.org&title=Dog&token=123ABC [تختۂ مشق میں کھولیں]
- Add multiple pages to a list.
- api.php?action=readinglists&command=createentry&list=33&batch=%5B%7B%22project%22%3A%22https%3A%5C%2F%5C%2Fen.wikipedia.org%22%2C%22title%22%3A%22Dog%22%7D%2C%7B%22project%22%3A%22https%3A%5C%2F%5C%2Fen.wikipedia.org%22%2C%22title%22%3A%22Cat%22%7D%5D&token=123ABC [تختۂ مشق میں کھولیں]