Giter Site home page Giter Site logo

Error with post json about cf7-to-api HOT 5 CLOSED

kennym avatar kennym commented on June 25, 2024
Error with post json

from cf7-to-api.

Comments (5)

kennym avatar kennym commented on June 25, 2024

What are the payloads you are providing?

from cf7-to-api.

drbelt27 avatar drbelt27 commented on June 25, 2024

what is the payload ?
sorry :(

from cf7-to-api.

drbelt27 avatar drbelt27 commented on June 25, 2024

sorry in my first message i have paste the incorrect json. you find the correct json below (i use the escape caracter)

{"elementType":"Leads", 
    "element": "{\"company\":\"[text-301]\",\"firstname\":\"[text-302]\",\"lastname\":\"[text-303]\",\"email\":\"[email-497]\",\"phone\":\"[tel-497]\",\"accounttype\":\"[menu-429]\",\"cf_mke_1055\":\"[menu-874]\",\"gdpr_privacypolicy\":\"[acceptance-5]\",\"leadsource\":\"[lead_source]\",\"cf_mke_1056\":\"[language]\"}"
    }

from cf7-to-api.

jhaeger avatar jhaeger commented on June 25, 2024

I've got the same error.

from cf7-to-api.

jhaeger avatar jhaeger commented on June 25, 2024

@drbelt27

Try the below:
{"elementType":"Leads","element":{"company":"[text-301]","firstname":"[text-302]","lastname":"[text-303]","email":"[email-497]","phone":"[tel-497]","accounttype":"[menu-429]","cf_mke_1055":"[menu-874]","gdpr_privacypolicy":"[acceptance-5]","leadsource":"[lead_source]","cf_mke_1056":"[language]"}}

My issue was improperly formatted JSON. Yours is as well.

from cf7-to-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.