עזרה של MediaWiki API

זהו דף תיעוד של API שנוצר באופן אוטומטי.

תיעוד ודוגמאות: https://www.mediawiki.org/wiki/API

action=emailuser

(main | emailuser)
  • יחידה זו דורשת הרשאות קריאה.
  • יחידה זו דורשת הרשאות כתיבה.
  • יחידה זו מקבלת רק בקשות POST.

שליחת דוא"ל למשתמש.

פרמטרים:
target

User to send email to.

פרמטר זה נדרש.
subject

Subject header.

text

Mail body.

פרמטר זה נדרש.
ccme

Send a copy of this mail to me.

token

אסימון "csrf" אוחזר מ־action=query&meta=tokens

פרמטר זה נדרש.
דוגמה:
Send an email to the User WikiSysop with the text Content.
api.php?action=emailuser&target=WikiSysop&text=Content&token=123ABC