cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right 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: 

https://api.dropboxapi.com/2/team_log/get_events

https://api.dropboxapi.com/2/team_log/get_events

FroxTrost
New member | Level 2

Filtering team events by timerange is not working. After specifying start_time and end_time it's still giving all the events.

    url = BASE_URL + "team_log/get_events"
    params = {
        "time": {
            "start_time": "2017-06-29T06:40:45Z",
            "end_time": "2018-01-25T15:51:30Z",
        },
    }
    response = requests.post(url, headers=custom_header, data=json.dumps(params))
1 Reply 1

Greg-DB
Dropbox Staff

Are you setting the 'Content-Type' value for your request? It would be in your custom_header variable but you didn't share the definition for that.

You should set it like:

"Content-Type": "application/json"

If you don't, the API call parameters won't get sent properly. 

You can use the API Explorer to help prototype these calls. Click "Show Code" and select "Python request (requests library)" for this case.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?