3

What does total in /notifications represent?
I ran it.
The result was items in Common Wrapper Object was array of 24 items where as total was 4.

5

1 Answer 1

3

This is a bug. I've tagged your question accordingly.

total, in the wrapper object, should always be the length of the items array, after concatenating all pages of results.

When I run /2.2/notifications?pagesize=100&filter=!*L6X1NqVdlFobvlv, I get 4 pages of results, currently totaling 382 items:

"Totally" Bogus!

total remains fixed at 77. This is clearly a bug, total should be 382 in my case.

6
  • I think they may be telling about the types of notification_type.
    – amit jha
    Jul 17, 2015 at 11:28
  • No, there are only 15 notification_types. Jul 17, 2015 at 11:32
  • I meant in your response. How many types of notification_types are in your response?
    – amit jha
    Jul 17, 2015 at 11:37
  • In my particular response there were 6 types of notification_type returned. What does that have to do with anything? Jul 17, 2015 at 11:42
  • I was guessing. Why do total = 4 comes when items != 4?
    – amit jha
    Jul 17, 2015 at 11:50
  • 1
    Why? Because it's a bug! There could be a mistake in the SQL, or an uninitialized variable, or any of a hundred things that can cause it. Only someone with developer access could know for sure. Jul 17, 2015 at 18:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .