Giter Site home page Giter Site logo

Comments (10)

hasansoydabas avatar hasansoydabas commented on July 23, 2024

Isn't is possible to filter desired form ids after getting user/forms?

We don't have a functionality that support advanced queries right now. Like, should we apply AND or OR for these form ids? They have both valid cases and currently we are building filter queries with AND.

It is not possible for us to change this behaviour.

About the performance issues we will monitor your concerns. However you can also implement a cache mechanism.

Thanks.

from jotform-api-nodejs.

selengenc avatar selengenc commented on July 23, 2024

Hi,

we implemented this issue. You can use this property of JotForm Api.

Sample Request Example::
&filter={"id:eq":["formID1","formID2","formID3","formID4"],"status":["disabled","enabled"]}&limit=50

from jotform-api-nodejs.

hasansoydabas avatar hasansoydabas commented on July 23, 2024

@wzup Due to some performance impact we had to revert recent changes.
We can't give an estimated time, however we are looking for a better solution.

from jotform-api-nodejs.

wzup avatar wzup commented on July 23, 2024

@hasansoydabas

Due to some performance impact we had to revert recent changes.

Haha, that's really funny to read after this:

Isn't is possible to filter desired form ids after getting user/forms?

So you experience a performance impact, revert changes because of that and then you say:

Hey, you better have performance impact on your side than we have it on ours.

Thanks for the service, yeah. Very good service 👍

from jotform-api-nodejs.

wzup avatar wzup commented on July 23, 2024

@hasansoydabas
hey because of your whining "oooh, we have performance impact we had to revert" we cannot query your API to solve our needs - we constantly get error from your servers.

{
    Error: connect ETIMEDOUT 104.23.128.7:443
        at Object.exports._errnoException (util.js:1012:11)
        at exports._exceptionWithHostPort (util.js:1035:20)
        at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1080:14)

    code: 'ETIMEDOUT',
    errno: 'ETIMEDOUT',
    syscall: 'connect',
    address: '104.23.128.7',
    port: 443
}

Can you implement that feature? We needs it for our work. Other solutions are not possible with weak API

from jotform-api-nodejs.

eeertekin avatar eeertekin commented on July 23, 2024

@wzup IP address is not related with our stack. It belongs to CloudFlare.com.

I'm not sure if CloudFlare is failing or API endpoint.

Send your query, I will check this out.

from jotform-api-nodejs.

wzup avatar wzup commented on July 23, 2024

@eeertekin

IP address is not related with our stack

What's that? My imagination?

google chrome 2016-12-25 20 29 59

Regarding the issue, let me prepare it for you. Will send it to you later.

Yes, the IP is not yours. But you use the service. And it is not possible to use your current version of API with that service. Because of ETIMEDOUT the service has for requests. I don't know if it is you who sets the time out or the service itself. But the result is - it breaks requests.

Implementing formId filter for

  1. GET /form/{id}/questions
  2. GET /form/{id}

would solve the issue.

from jotform-api-nodejs.

eeertekin avatar eeertekin commented on July 23, 2024

I have just tested your code with a test account,
and everything is working without a problem.

What is your username? Lets see it with your test env.

from jotform-api-nodejs.

eeertekin avatar eeertekin commented on July 23, 2024

In addition to your first problem;

You can use /user/forms for more than 29 items. I don't know how you get this number, but we're basically limiting it to 100 as default, and still you can get more than 100 with limit query.

So you don't need to loop over GET /form/{id} endpoint or formIDs filter on /user/forms endpoint.

screen shot 2016-12-27 at 1 04 09 am

from jotform-api-nodejs.

eeertekin avatar eeertekin commented on July 23, 2024

I would like to inform you that id filter is fixed for /user/forms endpoint.

http://api.jotform.com/user/forms?filter={"id":["***64608154459"]}

screen shot 2016-12-27 at 12 01 43 pm

http://api.jotform.com/user/forms?filter={"id:ne":["****4608154459"]}

screen shot 2016-12-27 at 12 06 35 pm

from jotform-api-nodejs.

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.