Cut the Clutter: Test Ignore Files Feature - sign up to become a beta tester here.

Forum Discussion

FroxTrost's avatar
FroxTrost
New member | Level 2
7 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))

1 Reply

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    7 years ago

    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.6,038 PostsLatest Activity: 6 years ago
415 Following

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

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!