📧電子信箱
Last updated
Last updated
GET https://{API_DOMAIN}/api/v1/email-contact
curl -X GET
-H "Content-Type: application/json"
"https://{API_HOST}/api/v1/email-contact?contact_id=1"
{
"data": [
{
"id": 1,
"address": "harvey.bartholome@gmail.com",
"contact_id": 1,
"draft": null,
"name": "Jaiden Champlin III",
"description": "Pariatur dolorem aut voluptatibus. Aut pariatur voluptatum ratione atque sit. Et inventore quo voluptates animi.",
"contact": {
"id": 1,
"membership_no": "8771639",
"identity_no": "418099",
"first_name": "Angelita",
"last_name": "D'Amore",
"gender": 0,
"birth_at": "1985-08-27 00:00:00",
"created_at": "2019-04-10 03:01:41",
"updated_at": "2019-04-10 03:01:41",
"profile_id": 1,
"sponsor_id": null,
"disturb_setting": null
}
},
{
"id": 5,
"address": "shyanne47@hotmail.com",
"contact_id": 1,
"draft": null,
"name": "Mikayla Funk",
"description": "Possimus optio molestiae perspiciatis distinctio. Vel incidunt ut unde. Laudantium eaque distinctio officia eum error odit.",
"contact": {
"id": 1,
"membership_no": "8771639",
"identity_no": "418099",
"first_name": "Angelita",
"last_name": "D'Amore",
"gender": 0,
"birth_at": "1985-08-27 00:00:00",
"created_at": "2019-04-10 03:01:41",
"updated_at": "2019-04-10 03:01:41",
"profile_id": 1,
"sponsor_id": null,
"disturb_setting": null
}
}
],
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"per_page": 15,
"to": 2,
"total": 2
}
}
https://{API_DOMAIN}/api/v1/email-contact/{email_contact}
curl -X GET
-H "Content-Type: application/json"
https://{API_HOST}/api/v1/email-contact/1
請參考電子信箱回應格式
{
"data": {
"id": 1,
"address": "harvey.bartholome@gmail.com",
"contact_id": 1,
"draft": null,
"name": "Jaiden Champlin III",
"description": "Pariatur dolorem aut voluptatibus. Aut pariatur voluptatum ratione atque sit. Et inventore quo voluptates animi.",
"contact": {
"id": 1,
"membership_no": "8771639",
"identity_no": "418099",
"first_name": "Angelita",
"last_name": "D'Amore",
"gender": 0,
"birth_at": "1985-08-27 00:00:00",
"created_at": "2019-04-10 03:01:41",
"updated_at": "2019-04-10 03:01:41",
"profile_id": 1,
"sponsor_id": null,
"disturb_setting": null
}
}
}
指定客戶新增電子信箱
POST https://{API_DOMAIN}/api/v1/email-contact
curl -X POST
-H "Content-Type: application/json"
'{"contact_id":1,"address":"loren18@ortiz.biz","name":"Theresia Zieme"}'
https://{API_HOST}/api/v1/email-contact
請參考電子信箱回應格式
{
"data": {
"id": 3,
"address": "loren18@ortiz.biz",
"contact_id": 1,
"draft": null,
"name": "Theresia Zieme",
"description": null,
"contact": {
"id": 1,
"membership_no": "8771639",
"identity_no": "418099",
"first_name": "Angelita",
"last_name": "D'Amore",
"gender": 0,
"birth_at": "1985-08-27 00:00:00",
"created_at": "2019-04-10 03:01:41",
"updated_at": "2019-04-10 03:01:41",
"profile_id": 1,
"sponsor_id": null,
"disturb_setting": null
}
}
}
PUT https://{API_DOMAIN}/api/v1/email-contact/{email_contact}
curl -X PUT
-H "Content-Type: application/json"
'{"name":"Sharon"}'
https://{API_HOST}/api/v1/email-contact/1
請參考電子信箱回應格式
{
"data": {
"id": 3,
"address": "loren18@ortiz.biz",
"contact_id": 1,
"draft": null,
"name": "Sharon",
"description": null,
"contact": {
"id": 1,
"membership_no": "8771639",
"identity_no": "418099",
"first_name": "Angelita",
"last_name": "D'Amore",
"gender": 0,
"birth_at": "1985-08-27 00:00:00",
"created_at": "2019-04-10 03:01:41",
"updated_at": "2019-11-10 03:01:41",
"profile_id": 1,
"sponsor_id": null,
"disturb_setting": null
}
}
}
Http status 為 204
https://{API_DOMAIN}/api/v1/email-contact/{email_contact}
curl -X DELETE
-H "Content-Type: application/json"
"https://{API_HOST}/api/v1/email-contact?contact_id=1"
{}