I can't figure out what's wrong with my request to get_events.
It works fine without the date parameters.
The documentation is here.
I've tried it:
"start_ts:" 1441374492
"start_ts:" "1441374492"
"start_ts:" 1441374492000 (in case they really want milliseconds - see other post)
$token = 'IvRWv7I_TOKEN_REMOVED_FOR_OBVIOUS_REASONSzzzzqaC'
$uri='https://api.dropbox.com/1/team/log/get_events'
$body_req= '{"category": "logins"}' ### Works fine.
$body_req= '{"category": "logins", "start_ts:" 1441374492, "end_ts:" 1443966661}' ### Invoke-RestMethod : The remote server returned an error: (400) Bad Request.
$res = Invoke-RestMethod -Uri $uri -Body $body_req -ContentType 'application/json' -Headers @{ Authorization = ("Bearer " + $token) } -Method Post
$res