How Can We Help?
Member API
In the middletwin platform, members are the object types that contain contact information for individual members. If performing an action like sending a message or an email, you will need to provide a member id. Members have the following actions.
create_member
update_member
delete_member
get_member
get_all_members
get_matching_members
Contact Properties for create/update actions
Field | Required | Description |
id | Update/Delete | long – The id of the member |
fname | n | String – The members first name (64 max) |
lname | n | String – The members last name (64 max) |
address | n | String – The members street address (128 max) |
city | n | String – The members city (64 max) |
state | n | String – The members state (32 max) |
zip | n | String – The members zip (16 max) |
phone1 | y | String – The members mobile number (24 max) |
phone2 | n | String – The members other number (24 max) |
email_address | n | String – The members other number (128 max) |
stopped | n | boolean – The members |
get_all_members has an optional type parameter which defaults to json, but you can specify csv to get a csv response.
get_matching_members requires the search_term parameter. The search_term is a String and will be compared against the members name, city, state, and email address. Matching members will be returned in an array.