We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

FroxTrost's avatar
FroxTrost
New member | Level 2
6 years ago

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

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))
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox 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.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,877 PostsLatest Activity: 4 hours ago
325 Following

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 or Facebook.

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!