cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Great and all as it is to hear how we use Dropbox, we want to know how you use it! Day to day, big projects, sharing files with friends and family - we want to know about it.

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

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

Greg-DB
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.

Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?