Need Help: Connecting with a Third Party API

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!

Hi,
Check out this article about 3rd party services.
If you want to implement this code in your site you should use the HTML element .

I would need you to integrate API from a delivery company into my website for same-day delivery and prebooked. They should be able to set the time and date.

You will need to read about how to access 3rd party services in the article Corvid: How to Access 3rd-Party Services with the Fetch API .

A nice simple example to start with is Create a Weather Widget . Also, t ake a look at the Advanced examples , many of them access 3rd party services. A couple of good examples to start with are: Example: Using the Places API from Google Maps services and Example: Send email with the SendGrid REST interface .