Custom module for Joey's
Installation
Installing this module will create the following DB tables:
And populating the following:
Configuration
N/A
Set all inactive if the user has been deactivated / deleted
set name if the user's Name has changed
edit_email, edit_phone_number
Validate email / phone number via Mailgun and Trellio respectively. Note that there will be charge ($$$) for every validation.
Rest APIs
/includes/modules/FM_Communication/api/communication_settings
Type: GET
Description: retrieve data in JSON format from fm_communication_emails and fm_communication_phone_numbers based on current user
Sample Output:
{"emails":[{"item_id":7330,"value":"blep@icomproductions.ca","type":"Work","isValid":true,"use":true}],"phone_numbers":[{"item_id":5357,"value":"14032491234","type":"Work","isValid":true,"use":true}]}
/includes/modules/FM_Communication/api/communication_settings/email
Type: POST
Parameters:
Description: edit email for current user
/includes/modules/FM_Communication/api/communication_settings/phone_number
Type: POST
Parameters:
Description: edit phone number for current user
/includes/modules/FM_Communication/api/communication_settings/delete_email
Type: POST
Parameter: item_id
Description: delete email
/includes/modules/FM_Communication/api/communication_settings/delete_phone_number
Type: POST
Parameter: item_id
Description: delete phone number
/includes/modules/FM_Communication/api/delivery_success
Type: POST
Description: verify Mailgun
/includes/modules/FM_Communication/api/delivery_failure
Type: POST
Description" verify mailgun???
/includes/modules/FM_Communication/api/sms_delivery
Type: POST
Description" verify trilio
N/A
N/A