Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var settings = {
- "async": true,
- "crossDomain": true,
- "url": "https://presto.funilpromkt.com.br/api/contacts/new",
- "method": "POST",
- "headers": {
- "cookie": "4530f58287b9bad3cb854c94993242e6=4eb6c1d2e28683a1da8059c597f31efd",
- "content-type": "application/json",
- "authorization": "Basic YWRtaW46cHJvQDEzNQ=="
- },
- "processData": false,
- "data": "{\n\"firstname\": \"Nome Newsletter\",\n\"email\": \"email@email.com\",\n\"state\" : \"Santa Catarina\",\n\"mensagem\" : \"Texto da mensagem\"\n}"
- }
- $.ajax(settings).done(function (response) {
- console.log(response);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement