APIs

From Redazione
< How it works‎ | Advanced use
Revision as of 15:27, 18 June 2020 by Admin (talk | contribs) (Created page with " endpoint <syntaxhighlight> /api/sendemail </syntaxhighlight> json request <syntaxhighlight> { 'path': String (path of related wiki), 'username': String (username of b...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

endpoint

	/api/sendemail


json request

{
	'path': String (path of related wiki),
	'username': String (username of bot or admin account),
	'password': String (password of bot or admin account),

	'template': String (name of used "pug" template),
	'to' or Array: String (list of recipients, can include one or more wiki groups),
	'cc': String or Array (list of recipients, can include one or more wiki groups),
	'bcc': String or Array (list of recipients, can include one or more wiki groups),
	'locals': Object (keys to be interpolated with values in the related template),

}