Jump to content

API GetProducts and response limit


baltazorbest1

Recommended Posts

Just now, pRieStaKos said:

Limit to what ? You get the product list and with a loop (PHP) you can return whatever you want.

Other way is to query `tblproducts` using Capsule and limit the results on that query.

Limit for response products. For example I have group with 100 products (VPS) but I would like get just 5 products from this group.

Link to comment
Share on other sites

On 3/30/2022 at 10:19 AM, baltazorbest1 said:

Limit for response products. For example I have group with 100 products (VPS) but I would like get just 5 products from this group.

 Capsule where in product id , array of targeted products (ids)

or GetProducts API, foreach loop result and check if product id in array of targeted products (ids), add to new array, return new array.

Link to comment
Share on other sites

23 hours ago, pRieStaKos said:

 Capsule where in product id , array of targeted products (ids)

or GetProducts API, foreach loop result and check if product id in array of targeted products (ids), add to new array, return new array.

But this is so not optimal, I think the good way is add limit and order to the API, it will be perfect way

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated