I'm using REST-API to find the count of users with the help of LiQL query.
but sometimes it is giving me as 278382 and sometimes it is giving me as 283847.
it is s everytime swapping from 278382 to 283847 or vice-versa.
do you have any idea why this is happening?
Thanks in Advance.
That query is too broad so it will always fail. From the documentation "This must be constrained by the online_status parameter in the WHERE clause."
So this would work:
SELECT count(*) FROM users WHERE online_status = 'online'
So for what you need I would use API 1:
Can you please help me to understand how to use
can you please give me an example so that would be great help.
If you want to use it to just get the actual figure, you just change the URL to contain your community info and paste it into your browser. It displays as an xml page with no styling.
http://[your community home page url].com/[your community name]/restapi/vc/users/count
However if you want to use it in a custom component, this post explains how to use the REST API in a custom component - https://community.lithium.com/t5/Developer-Knowledge-Base/Component-tutorial-Building-your-first-cus...
Welcome to the Technology board!Curious about our platform? Looking to connect on social technology? You've come to the right place!