cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Get summer ready with Dropbox basic - travel documents, plans, progress reminders and more, right over here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

api.dropboxapi.com/2/team_log/get_events returns an empty list

api.dropboxapi.com/2/team_log/get_events returns an empty list

SportCorp
New member | Level 2

calling api.dropboxapi.com/2/team_log/get_events returns an empty list with "has_more"true

{
    "events": [],
    "cursor""AABCp00-V60AxTHN5J_Brex8tf5o0w9lXW8zmPz8ZTqZ7wg-1ubg1Skj2s6hyg6VlRyj-iyxGkv5RoTCaPP_kx9VAvRAr5rKAaUSYUFe8529SC28VXIZKCcXb9Lhx9EGfi5Zjkt_pHr_YRzN7-mzpCj4UsA8Wx_HDJC2E2DVGuK2lJx0uYgbVcs98hRRbu4433OuHpjrz5LGJL9O912P5x3Bx6UOfvV8r-GQ6uFJHqOsFiCuuwAWIVsQmLyiOXyfqsO6963Gyro6EUO4q9zTLaafL0ndJflQuN5GS96A_5Dy9GqrGAotyHzXrhhGxWaXYw2ccSBU7dRskmpdDLpmJ_qHqwXL3RNkA_mqWWE9htye3g",
    "has_more"true
}
 

The feature is enabled as api.dropboxapi.com/2/team/features/get_values returns the following as true:

{
    "values": [
        {
            ".tag""has_team_file_events",
            "has_team_file_events": {
                ".tag""enabled",
                "enabled"true
            }
        },
        {
            ".tag""has_team_shared_dropbox",
            "has_team_shared_dropbox": {
                ".tag""has_team_shared_dropbox",
                "has_team_shared_dropbox"true
            }
        }
    ]
}
 
 
1 Accepted Solution

Accepted Solutions

Re: api.dropboxapi.com/2/team_log/get_events returns an empty list

Greg-DB
Dropboxer

When you get 'has_more:true' back from /2/team_log/get_events, you need to call back to /2/team_log/get_events/continue using the returned 'cursor' (and so on). The exact page size for any single response from these endpoints is not guaranteed, so make sure you have that implemented so you can retrieve all of the results, which may take multiple calls.

 

If something isn't working though, e.g., if you paginate through all of the pages until you get 'has_more:false' but still haven't received the entries, please let me know so we can look into it.

View solution in original post

4 Replies 4

Re: api.dropboxapi.com/2/team_log/get_events returns an empty list

Greg-DB
Dropboxer

When you get 'has_more:true' back from /2/team_log/get_events, you need to call back to /2/team_log/get_events/continue using the returned 'cursor' (and so on). The exact page size for any single response from these endpoints is not guaranteed, so make sure you have that implemented so you can retrieve all of the results, which may take multiple calls.

 

If something isn't working though, e.g., if you paginate through all of the pages until you get 'has_more:false' but still haven't received the entries, please let me know so we can look into it.

Re: api.dropboxapi.com/2/team_log/get_events returns an empty list

SportCorp
New member | Level 2

Thanks for the solution, though it is a weird behavior as it took about 7 pages (7 times continue) to get to useful data.

Re: api.dropboxapi.com/2/team_log/get_events returns an empty list

dhyanP
New member | Level 2

Did you end up figuring this out? I'm having the same issue.

Re: api.dropboxapi.com/2/team_log/get_events returns an empty list

Greg-DB
Dropboxer

@dhyanP It sounds like the original poster here did get this working by iterating through the different result pages as needed and indicated by the 'has_more' value. Please see my earlier comment for more information. Is that not working for you?

Poll
Which Dropbox Plan do you have?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
  • User avatar
    dhyanP New member | Level 2
  • User avatar
    SportCorp New member | Level 2
What do Dropbox user levels mean?
Need more support?