E
E
Evgeniy Kvasyuk2016-01-22 17:59:47
JavaScript
Evgeniy Kvasyuk, 2016-01-22 17:59:47

Is it possible to access the MailChimp API without a server, but directly from the front through an ajax request?

There was a need to access the MailChimp API directly from the front, bypassing the server. Is it possible. If you show an example of a simple request to the API, it will be great in general, thanks.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Seredny, 2016-01-22
@smidl

What's stopping you from sending a request? The main thing is to use jsonp, for cross-domain requests
The URL for the Ajax request is the same as for the server one. The main thing is to send the correct headlines
With instagram rolls) try it here too

Назар Мокринский, 2016-01-22
@nazarpc

Нельзя, вам в запросе нужно передавать секретный ключ, вы же не хотите пользователям показывать его чтобы любой от вашего имени мог делать запросы в API?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question