Forum Discussion
I am making the call after the time period only.
i.e. after the date_end parameter.
but if the user logins "after the end of time period" then the user is excluded from the response even if he was logged in within that time period.
example:
if user-A logins on date 2013-06-29 and again if he logins on 2013-06-30.
Then if I make a call to retrieve users visited on date 2013-06-29, then User-A should be there, right?
but if I make a call using following API then I don't get User-A in the response.
This is because User-A logins on 2013-06-30.
API call to get Active users within given timeframe (also gives some limited user metrics)
Endpoint: http:// <community_name>.stage.lithium.com/restapi/vc/users/visited
Parameters:
date_start=2013-06-29T00:00Z (you can change the dates)
date_end=2013-06-29T23:59Z
Dhiraj,
After looking into this, it seems the call just isn't meant to be used this way; the user's login time is only tracked for their last session, and this is the information used to put together the list for the users/visited call. The documentation on this might just need to be updated to clarify, but as of now there is no support for tracking which users logged in during a given time period.
I'm sorry there isn't a call to support this exact use case, but if you don't need the actual identities of the users who logged in during a given time, but just want to know the number, there may be a metrics call you could use, or else there may be some way to retrieve information on an individual user's logins. If you'd like I can try to look into one of these alternate methods of getting user login info, I just don't think that you'll be able to get the exact information you expected from the users/visited call in that format.
Best,
Jake Scheps
Related Content
- 2 years ago
- 10 years ago
- 8 years ago