<< Click to Display Table of Contents >> Modify recipients and CC for sending mail tasks in scheduling tasks |
![]() ![]() ![]() |
Request address |
http://ip:port/bi/api?action=saveNode&type=combineTaskmailAddr&token=xxxx |
|
Request message |
Request parameter |
required parameter:xmlData (required) <?xml version="1.0" encoding="UTF-8"?> <info> <name>test</name> <tomail> <add>18973309102@163.com;</add> <remove>jessica;</remove> </tomail> <ccmail> <add>jessica;</add> <remove>jack;</remove> </ccmail> </info> |
parametric description |
name(required):The name of the task. tomail(optional):Recipient node. ccmail(optional):CC node. add(optional):Add the specified user to the sender list or CC list. remove(optional):Removes the specified user from the sender list or CC list. ➢explain:The value of the recipient and the CC is a semicolon"; "a split list. among,Each item can be a user name or a mailbox address, The last semicolon can be omitted. |
|
Sample |
function combineTaskMail() { var xml = getXml(); $.post("http://" + ip + ":" + port + "/" + project + "/api?action=saveNode&type=combineTaskmailAddr&token=xxxx", { "xmlData": xml }, function(result){ writeXml(result); }); } |
|
Response message |
Response result
|
1) Successful operation <?xml version="1.0" encoding="UTF-8"?> <results> <result> <level>1</level> <message>Save ''test'' successfully.</message> </result> </results> 2) Operation failure <?xml version="1.0" encoding="UTF-8"?> <results> <result> <level>6</level> <message> C:\Yonghong\Yonghong\bihome\scheduler\test.task (the system could not find the specified file.) </message> </result> </results> |
Result description |
The response result information is xml. direct parse. 1) Level return type, different values represent different return status, see appendix. 2) Message is the interface operation result information. |