admin管理员组文章数量:1389778
I'm sending a list of parameters the SM8 API
The response I am getting is 200 OK, & email is being sent to the client, but the email itself does not show up in job diary (kind of not linked to specific job_uuid).
Here's the list of parameters that I'm passing to the API:
{
"to": "[email protected]",
"from": "[email protected]",
"subject": "It works",
"message": "This message confirms Email was sent correctly",
"htmlBody": "This message confirms Email was sent correctly",
"textBody": "This message confirms Email was sent correctly",
"job_uuid": job_uuid,
}
job_uuid is used from previously created job, and it is varified that it is correct (as I used this job_uuid to refer other pieces of codes, and it worked properly) Anyone see what the problem is?
Cheer
"template_uuid": template_uuid,
Additionaly i tried to use the template to see if it will link the email to specific job , but it did not bring any luck.
is there a reason that i am performing authentification using the loging and password and it should be access token?
I'm sending a list of parameters the SM8 API https://api.servicem8/platform_service_email
The response I am getting is 200 OK, & email is being sent to the client, but the email itself does not show up in job diary (kind of not linked to specific job_uuid).
Here's the list of parameters that I'm passing to the API:
{
"to": "[email protected]",
"from": "[email protected]",
"subject": "It works",
"message": "This message confirms Email was sent correctly",
"htmlBody": "This message confirms Email was sent correctly",
"textBody": "This message confirms Email was sent correctly",
"job_uuid": job_uuid,
}
job_uuid is used from previously created job, and it is varified that it is correct (as I used this job_uuid to refer other pieces of codes, and it worked properly) Anyone see what the problem is?
Cheer
"template_uuid": template_uuid,
Additionaly i tried to use the template to see if it will link the email to specific job , but it did not bring any luck.
is there a reason that i am performing authentification using the loging and password and it should be access token?
Share Improve this question edited Mar 13 at 14:28 VLAZ 29.1k9 gold badges63 silver badges84 bronze badges asked Mar 13 at 9:11 Vitaliy KulishVitaliy Kulish 11 Answer
Reset to default 0I figured out that the issue was regarding the wrong parameters to be used based on provided documentation by SM8.
The correct field for referring specific job number should look like "regardingJobUUID": "7c950fdd-7cbf-4b87-ad9b-2294227485db". It seams they have updated their documentation and added this field to the list of required parameter.
本文标签: pythonServiceM8 API Email Sent but Not Appearing in Job DiaryStack Overflow
版权声明:本文标题:python - ServiceM8 API Email Sent but Not Appearing in Job Diary - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744712011a2621185.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论