Coder Social home page Coder Social logo

Comments (4)

ekta-slit avatar ekta-slit commented on July 17, 2024

Hi @karsten-eger

The count field in response will always be the total number of Email campaigns present in the account, irrespective of the filter used. Same is the case with rest all GET calls.

Thanks

from apiv3-php-library.

karsten-eger avatar karsten-eger commented on July 17, 2024

This does not make any sense though. How am I supposed to do a paging when I have no idea how many entities the result is holding? I thought that's what "count" is for 😉

from apiv3-php-library.

ekta-slit avatar ekta-slit commented on July 17, 2024

For paging you can use campaigns field in response which is an array of objects ( count on that, you already have limit and offset query parameters ) and along with that we give complete count of campaigns as well 🙂

from apiv3-php-library.

karsten-eger avatar karsten-eger commented on July 17, 2024

or paging you can use campaigns field in response which is an array of objects ( count on that, you already have limit and offset query parameters )
Let's do an example here:

  • I have 200 campaigns in my account (55 are sent)
  • I want to create a paged view with 10 (sent) campaigns on each page

With what you suggest I have no way of knowing I need 6 pages for this since the only options I have is count the entries in campaigns which is 10 - the limit I'm setting or use the count field, which is 200 in this case. How am I supposed to get the count of the sent campaigns (55)?

from apiv3-php-library.

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.