小编Dav*_*idy的帖子

通过 OTRS API 发送电子邮件

我目前有以下通过调用链接 /otrs/nph-genericinterface.pl/Webservice/GenericTicketConnectorREST/Ticket 更新 OTRS 票证

它工作得很好,但是当票证也更新时,我怎样才能让它向客户发送电子邮件?

var body = JSON.stringify ({
    "Ticket":{
        "StateID":params.state},
        "Article":{
            "ArticleTypeID":params.noteType,
            "Subject":params.subject,
            "Body":params.bodyText,
            "ContentType":params.contentType
        }
    }
);

//Build the full URL for our webservice query.
var LoginURL = authenticate.URL + "/" +
TicketID +
"?UserLogin=" + authenticate.UserLogin +
"&Password=" + authenticate.Password;

//Perform the actual work. As well as the URL of the webservoce
var client = new apiclient.ApiClient({ serverid: this.serverid });
var resp = client.invoke( "formutils", "httpRequest", {
    "url": LoginURL,
    "method": "POST",
    "headers": { 
    "ContentType":"application/json"},
    "body": …
Run Code Online (Sandbox Code Playgroud)

api web-services otrs

1
推荐指数
1
解决办法
1395
查看次数

标签 统计

api ×1

otrs ×1

web-services ×1