APIs
< How it works | Advanced use
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
<syntaxhighlight> | <syntaxhighlight> | ||
{ | { | ||
− | 'path': String ( | + | 'path': String (url of related wiki), |
'username': String (username of bot or admin account), | 'username': String (username of bot or admin account), | ||
'password': String (password of bot or admin account), | 'password': String (password of bot or admin account), |
Revision as of 15:28, 18 June 2020
endpoint
https://culturaitaliana.org/api/sendemail
json request
{
'path': String (url 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),
}