<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: api.dropbox.com/1/team/log/get_events help with parameters in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/api-dropbox-com-1-team-log-get-events-help-with-parameters/m-p/153302#M5116</link>
    <description>&lt;P&gt;(You may want to look at&amp;nbsp;&lt;A href="http://stackoverflow.com/questions/18771424/how-to-get-powershell-invoke-restmethod-to-return-body-of-http-500-code-response" rel="nofollow noreferrer"&gt;http://stackoverflow.com/questions/18771424/how-to-get-powershell-invoke-restmethod-to-return-body-of-http-500-code-response&lt;/A&gt; to learn how to get the response&amp;nbsp;body.)&lt;/P&gt;</description>
    <pubDate>Sun, 04 Oct 2015 23:44:59 GMT</pubDate>
    <dc:creator>Steve M.</dc:creator>
    <dc:date>2015-10-04T23:44:59Z</dc:date>
    <item>
      <title>api.dropbox.com/1/team/log/get_events help with parameters</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/api-dropbox-com-1-team-log-get-events-help-with-parameters/m-p/153300#M5114</link>
      <description>&lt;P&gt;I can't figure out what's wrong with my request &amp;nbsp;to get_events.&lt;BR /&gt;It works fine without the date parameters.&lt;/P&gt;
&lt;P&gt;The documentation is &lt;A href="https://www.dropbox.com/developers/business#documentation" target="_blank" rel="nofollow noreferrer"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;I've tried it:&lt;BR /&gt;"start_ts:" 1441374492&lt;BR /&gt;"start_ts:" "1441374492"&lt;BR /&gt;"start_ts:" 1441374492000 (in case they really want milliseconds - see other post)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$token = 'IvRWv7I_TOKEN_REMOVED_FOR_OBVIOUS_REASONSzzzzqaC'&lt;BR /&gt;$uri='&lt;A href="https://api.dropbox.com/1/team/log/get_events" rel="nofollow noreferrer" target="_blank"&gt;https://api.dropbox.com/1/team/log/get_events&lt;/A&gt;'&lt;/P&gt;
&lt;P&gt;$body_req= '{"category": "logins"}' &amp;nbsp;###&amp;nbsp;Works fine.&lt;BR /&gt;$body_req= '{"category": "logins", "start_ts:" 1441374492, "end_ts:" 1443966661}' &amp;nbsp;###&amp;nbsp;Invoke-RestMethod : The remote server returned an error: (400) Bad Request.&lt;BR /&gt;$res = Invoke-RestMethod -Uri $uri -Body $body_req -ContentType 'application/json' -Headers @{ Authorization = ("Bearer " + $token) } -Method Post&lt;BR /&gt;$res&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:39:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/api-dropbox-com-1-team-log-get-events-help-with-parameters/m-p/153300#M5114</guid>
      <dc:creator>Rethinkit A.</dc:creator>
      <dc:date>2019-05-29T09:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: api.dropbox.com/1/team/log/get_events help with parameters</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/api-dropbox-com-1-team-log-get-events-help-with-parameters/m-p/153301#M5115</link>
      <description>&lt;P&gt;What's the body of the 400 response? The API is usually pretty good at telling you what's wrong.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Oct 2015 23:41:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/api-dropbox-com-1-team-log-get-events-help-with-parameters/m-p/153301#M5115</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-10-04T23:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: api.dropbox.com/1/team/log/get_events help with parameters</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/api-dropbox-com-1-team-log-get-events-help-with-parameters/m-p/153302#M5116</link>
      <description>&lt;P&gt;(You may want to look at&amp;nbsp;&lt;A href="http://stackoverflow.com/questions/18771424/how-to-get-powershell-invoke-restmethod-to-return-body-of-http-500-code-response" rel="nofollow noreferrer"&gt;http://stackoverflow.com/questions/18771424/how-to-get-powershell-invoke-restmethod-to-return-body-of-http-500-code-response&lt;/A&gt; to learn how to get the response&amp;nbsp;body.)&lt;/P&gt;</description>
      <pubDate>Sun, 04 Oct 2015 23:44:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/api-dropbox-com-1-team-log-get-events-help-with-parameters/m-p/153302#M5116</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-10-04T23:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: api.dropbox.com/1/team/log/get_events help with parameters</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/api-dropbox-com-1-team-log-get-events-help-with-parameters/m-p/153303#M5117</link>
      <description>&lt;P&gt;Thanks- you were right. Once I figured out how to read the response I found the typo:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$body_req= '{"category": "logins", "start_ts:" 1441374492, "end_ts:" 1443966661}' &amp;nbsp;###&amp;nbsp;Invoke-RestMethod : The remote server returned an error: (400) Bad Request.&lt;/P&gt;
&lt;P&gt;should be: (the colon marks go outside the quote marks)&lt;/P&gt;
&lt;P&gt;$body_req= '{"category": "logins", "start_ts": 1441374492, "end_ts": 1443966661}' &amp;nbsp;###&amp;nbsp;OK&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 05:52:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/api-dropbox-com-1-team-log-get-events-help-with-parameters/m-p/153303#M5117</guid>
      <dc:creator>Rethinkit A.</dc:creator>
      <dc:date>2015-10-05T05:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: api.dropbox.com/1/team/log/get_events help with parameters</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/api-dropbox-com-1-team-log-get-events-help-with-parameters/m-p/153304#M5118</link>
      <description>&lt;P&gt;And by the way the dates ARE in milliseconds so actually make the dates x1000&lt;/P&gt;
&lt;P&gt;$body_req= '{"category": "logins", "start_ts": 1441374492000, "end_ts": 1443966661000}' &amp;nbsp;###&amp;nbsp;OK&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 05:52:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/api-dropbox-com-1-team-log-get-events-help-with-parameters/m-p/153304#M5118</guid>
      <dc:creator>Rethinkit A.</dc:creator>
      <dc:date>2015-10-05T05:52:53Z</dc:date>
    </item>
  </channel>
</rss>

