最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python - ServiceM8 API Email Sent but Not Appearing in Job Diary - Stack Overflow

programmeradmin1浏览0评论

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 1
Add a comment  | 

1 Answer 1

Reset to default 0

I 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.

发布评论

评论列表(0)

  1. 暂无评论