Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Jacob_F 2023
3 years agoNew member | Level 2
/team/log/get_events Not giving data past 2019
Calling /team/log/get_events doesn't give me any data for my client past 2019, tried with multiple categories, no categories, and limiting by time. Using OAuth.
Biswamber_Khandei
3 years agoExplorer | Level 3
Based on your input:
We are calling /2/team_log/get_events/continue by passing the Access Token in the Authorization and the "cursor" in the body only when there is "has_more": true in the /2/team_log/get_events API.
The API's response does not seem to adhere to the specified "limit" parameter. For instance, when a "limit" of "5" is passed, the API consistently returns only one data entry, even though there is additional data on subsequent pages, indicated by the "has_more" field being set to "true." Subsequently, when the /2/team_log/get_events/continue API is called, it provides 5 or 6 data entries, possibly even more.
Greg-DB
Dropbox Community Moderator
3 years agoYes, while the app can request a maximum number of events to return per page, in some cases the server may return fewer than that number. That means that when you send a limit of 5, it is possible that the API will return one or even zero events on any given page. This will vary depending on a number of factors on the backend.
Similarly, though it's working in my testing and I don't have specific information/documentation on this but while the limit is meant as a maximum, due to how things are batched on the backend, from your description it's possible you might be seeing somewhat more than that in some cases. That being the case, I recommend making sure your app doesn't strictly enforce that and doesn't crash if it receives more than the requested number of events per page.
- Biswamber_Khandei3 years agoExplorer | Level 3
Based on your inquiry and the information provided, will the "get_events" endpoint return details or a response related to the "logins" category even when a user logs in using Single Sign-On (SSO)?
Another concern arises if a user logged into Dropbox on September 1, 2023, and has not logged out since that day, but continues to access their account daily due to having selected the "Remember me" option. In this scenario, what date will be included in the response?
- Greg-DB3 years ago
Dropbox Community Moderator
Yes, the "logins" events apply to logging in using SSO as well.
The "timestamp" on a TeamEvent is the date/time the event itself took place. So for a login, it's the time the user logged in, regardless of how long they stay logged in after that.
- Biswamber_Khandei3 years agoExplorer | Level 3
Thank you for your prompt response. Let's consider a scenario where I log in to Dropbox today using Single Sign-On (SSO) and remain logged in for over three days. During this time, I use the Dropbox application daily and perform various activities. I do not manually click the "Login" or "Sign in using Microsoft" button daily because I have selected the "Remember me" option. In this situation, if I were to make an API request after three days, would it return the current timestamp(3rd or 4th day's timestamp) or today's timestamp(when I last time logged in using SSO)?
Additionally, could you please clarify the automatic sign-out time period when logging in with SSO?
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!