Forum Discussion

omygoodness's avatar
8 years ago

API 1 posts/count showing 0

Hi,

I have strange problem. For some users I get 0 posts using restapi/vc/users/id/[id] /posts/counts but when I use restapi/vc/users/id/[id] /posts I get proper number of posts. 


Any ideas?

3 Replies

  • omygoodness - Can you try the same in API V2, just to check if this is error is only with API V1?

     

    Select * from messages where user.id = 'id'
    Select count(*) from messages where user.id = 'id'

    Give kudos if you find my posts helpful or mark solution if it answers your query

    Tariq

  • omygoodness's avatar
    omygoodness
    Mentor
    8 years ago

    I checked API2 and it is counting fine so there is problem with some requests with API1

  • VikasB's avatar
    VikasB
    Boss
    8 years ago

    omygoodness It seems you are using counts instead of count in your API.

    /restapi/vc/users/id/[id]/posts/count

     


    Screenshot_2.png