Hi there,
I am having trouble connecting my Wix website to a third party API. I need to connect the user registration box Wix provides with the API of OneReach, a third party texting platform. Ultimately, the user will register and that information will trigger an automated welcome text from the third party and log their contact information.
The third party has let me know they need the information transmitted as JSON. They’ve provided the code below with respect to connecting to their API. I need assistance from the Wix side of getting the information sent to the right place.
This is the code the third party sent:
{“COMMENTS”:"
OneReach Add Contact API Call
Adds a Contact
Request Type: POST
Content Type: JSON
URL: https://wapi.onereach.com/api/Contact/
Headers:
Requires a username and password – example:
username: < username@domain.com >
password:
Content-type: application/<json|xml>
Accept: application/<json|xml>
NOTES:
– If a Contact with a matching key value (Cell Phone or Email Address) exists, an HTTP 500 response will be received
}
[
{
“Name”:“First Name”,
“Value”:“John”
},
{
“Name”:“Last Name”,
“Value”:“Doe”
},
{
“Name”:“Cell Phone”,
“Value”:“3039998888”
}
]
Note: CU5T0MF13LD should be appended to any Custom Contact Fields
If anyone can help me, I’d be so grateful. Thank you!