cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Tell us what you want to see on the Community here!
Close

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

Highlighted

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

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
Highlighted

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

Dropboxer

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.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?