Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jf.getForms() doesn't accept "limit" filter #5

Closed
wzup opened this issue Dec 17, 2015 · 1 comment
Closed

jf.getForms() doesn't accept "limit" filter #5

wzup opened this issue Dec 17, 2015 · 1 comment

Comments

@wzup
Copy link

wzup commented Dec 17, 2015

I use Node.js library.

I want to fetch 1000 forms. By your API it is max. I provide limit filter but it doesn't work. Only default 100 is returned (for any limit number, not only 1000):

    jf.getForms({
            limit: 1000 // filter
        })
        .then(function(forms) {
            console.log(forms.length); // 100, not 1000
        })
        .fail(function(e) {
        });

I use jotform, not jotform-api-nodejs. See the difference: #4

How to make filter work?

@kennethpdev
Copy link
Contributor

Hi, we added filters to getForms method.
Here is a simple usage:

jotform.getForms({
  limit: 100,
  offset: 0,
  filter: {new: 1},
  orderby: 'id',
  direction: 'ASC'
 }).then(function(response){
   console.log(response);
 }).fail(function(errors){
    console.log(errors);
 });

Please install the latest package (v0.1.0) npm install jotform or download the latest source code from release section v0.1.0

check docs for more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants