Code Monkey home page Code Monkey logo

typeform-client's Issues

Add short_text types of answers

Is your feature request related to a problem? Please describe.
No.

Describe the solution you'd like
Add support for short_text like the “your name” or “your email” to also get included in all the results in the excel

Cannot read property "token" of undefined

Using the sample code in the readme to fetch a form, I'm getting:

(node:23596) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'token' of undefined
    at Form._fetchResponses (~/node_modules/@lirantal/typeform-client/src/Form/Form.js:95:31)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async Form.fetchFormResponses ~/node_modules/@lirantal/typeform-client/src/Form/Form.js:118:51)
    at async ~/test.js:16:14

The error comes from this line in the node module:

      if (apiResult.page_count === 1) {
        break
      } else {
        const len = apiResult.items.length
        const lastItem = apiResult.items[len - 1]
        tokenValue = lastItem.token
      }

Might need a more defensive fix?

For reference, my form has 6 questions and no responses.

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.