How to get registered users length

Solved!
Posted in General by amir asadzade Mon May 02 2016 11:59:02 GMT+0000 (UTC)·1·Viewed 1,157 times

i want to get how many users registered as string
Bradley Serbus
May 2, 2016

Hi Amir,

There's two ways. First, you can do a search for all users by doing a GET to '/users', and count them by iterating through the results. Here's the documentation for the Search Users call: http://docs.buddy.com/docs/search-users.

A second way is to increment an app metadata key every time a user is successfully created. In the call, make sure to use the app's Buddy ID. The response will contain the current count. Here's the documentation for metadata increment call: http://docs.buddy.com/docs/increment-metadata-values.

If you have any other questions, please let me know.

Thanks,
Brad


Bradley Serbus marked this as solved
Markdown is allowed