Answer the question
In order to leave comments, you need to log in
JS or PHP - where to send POST and GET requests to the GetResponse API?
I read the GetResponse API, but especially earlier in my small practice of web development I did not come across the work of APIs of third-party services and servers. If I want to send via API just an email of a user who is collected through a form on the site, make a cross-domain request through JS, or first send it to my server in php, and then from there a request to GetResponse?
I did not work with cross-domain requests in js and I assume there are some difficulties here.
Answer the question
In order to leave comments, you need to log in
This is your choice. If you need to save an email in your database, then send a request to your server, and from there, after saving, a request to a third-party API. Or you can send a request via ajax from js to yourself and a request to a third-party server... Do as it is easier for you if there is no difference.
PS But no one will dig out a request to a third-party server from php, at least unlike JS.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question