Title
Mobile Commons: How to make POST requests to MC to subscribe the webform signups, instead of directly embedding the MC form code in the webform backend code?
Environment
Resolution Summary
Details
Internal Information
Resolution Category
Keywords
webforms API raexternalrequest
Mobile Commons: How to make POST requests to MC to subscribe the webform signups, instead of directly embedding the MC form code in the webform backend code?
Environment
MobileCommons
Signup forms
Resolution Summary
Information on making direct POST requests to subscribe webform signups to MC
Details
It's possible to use /profiles/join endpoint to make direct POST requests with the required parameters to subscribe the signed-up profiles.\
Example code:
URL:
https://secure.mcommons.com/profiles/join
JSON request body showing how to send the opt-in path field and some of the main profile fields.
{
"opt_in_path":"OPB6CCFB637FCA3XXXXXXXXXXXXXX",
"person":
{
"phone":"1781XXXXXXX",
"first_name":"Bassel",
"last_name":"Magdy",
"email":"test@test.com",
"street1":"123 Main Street",
"city":"West Fritztown",
"state":"Illinois",
"postal_code":"15454"
}
}
Internal Information
Resolution Category
Question::Product How-To / Training
Keywords
webforms API raexternalrequest