<?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 Access token expiry, Folder or file parentId, in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-token-expiry-Folder-or-file-parentId/m-p/82833#M2450</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have multiple questions:&lt;/P&gt;
&lt;P&gt;1.How to check if access token has expired? For the moment I created a new DropboxClient and if it is null I make a new request for another access token.&lt;/P&gt;
&lt;P&gt;2.Is it possible to get the parent id of a folder or file? I've seen that every metadata of a &amp;nbsp;file or a folder has an id , but they don't have a parentId.&lt;/P&gt;
&lt;P&gt;3.Why can't I make a request for a token without redirect_uri? In documentation it apears to be optional , but when I pass it as null to GetAuthorizeUri() method it crashes because redirect_uri is null in a token request (&lt;A href="https://api.dropboxapi.com/1/oauth2/token" rel="nofollow noreferrer" target="_blank"&gt;https://api.dropboxapi.com/1/oauth2/token&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:40:21 GMT</pubDate>
    <dc:creator>Nenciu D.</dc:creator>
    <dc:date>2019-05-29T09:40:21Z</dc:date>
    <item>
      <title>Access token expiry, Folder or file parentId,</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-token-expiry-Folder-or-file-parentId/m-p/82833#M2450</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have multiple questions:&lt;/P&gt;
&lt;P&gt;1.How to check if access token has expired? For the moment I created a new DropboxClient and if it is null I make a new request for another access token.&lt;/P&gt;
&lt;P&gt;2.Is it possible to get the parent id of a folder or file? I've seen that every metadata of a &amp;nbsp;file or a folder has an id , but they don't have a parentId.&lt;/P&gt;
&lt;P&gt;3.Why can't I make a request for a token without redirect_uri? In documentation it apears to be optional , but when I pass it as null to GetAuthorizeUri() method it crashes because redirect_uri is null in a token request (&lt;A href="https://api.dropboxapi.com/1/oauth2/token" rel="nofollow noreferrer" target="_blank"&gt;https://api.dropboxapi.com/1/oauth2/token&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:40:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-token-expiry-Folder-or-file-parentId/m-p/82833#M2450</guid>
      <dc:creator>Nenciu D.</dc:creator>
      <dc:date>2019-05-29T09:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Access token expiry, Folder or file parentId,</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-token-expiry-Folder-or-file-parentId/m-p/82834#M2451</link>
      <description>&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;Access tokens don't expire, but they can be invalidated by a user who revokes&amp;nbsp;your app's access.&amp;nbsp;To test an access token, just make an API call and handle the&amp;nbsp;exception for a 401 response. I'm not sure what&amp;nbsp;null value you're checking for, but nothing&amp;nbsp;client-side will tell you if the access token is valid; you need to test it by calling a server-side endpoint.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;I assume you're asking about the file IDs in API v2, right? I think you'll need to use the path to determine the parent and call get_metadata on the parent to get its ID. (E.g. if the path is /foo/bar/baz, call get_metadata on /foo/bar.)&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Per the OAuth 2 spec, the redirect_uri passed to /token has to match the one used with /authorize, so if you used one there, then you need to use one when you call /token.&amp;nbsp;I&amp;nbsp;believe this requirement is for security purposes, though I'm not 100% sure what security threat it mitigates.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Mon, 31 Aug 2015 21:51:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-token-expiry-Folder-or-file-parentId/m-p/82834#M2451</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-08-31T21:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Access token expiry, Folder or file parentId,</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-token-expiry-Folder-or-file-parentId/m-p/82835#M2452</link>
      <description>&lt;P&gt;I also want to ask about id.&lt;/P&gt;
&lt;P&gt;What is the root folder id?&lt;/P&gt;
&lt;P&gt;I use the explorer and even I type / or let it empty, I could not get the metadata of the root folder?&lt;/P&gt;
&lt;P&gt;Is anything I type wrong?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 22:57:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-token-expiry-Folder-or-file-parentId/m-p/82835#M2452</guid>
      <dc:creator>m. chiuq</dc:creator>
      <dc:date>2015-12-17T22:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Access token expiry, Folder or file parentId,</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-token-expiry-Folder-or-file-parentId/m-p/82836#M2453</link>
      <description>&lt;P&gt;"m. chiuq",&amp;nbsp;your post&amp;nbsp;seems unrelated to this thread. Please&amp;nbsp;start your own thread to ask a new question.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2015 01:02:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-token-expiry-Folder-or-file-parentId/m-p/82836#M2453</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-12-18T01:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Access token expiry, Folder or file parentId,</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-token-expiry-Folder-or-file-parentId/m-p/82837#M2454</link>
      <description>&lt;P&gt;OK, I create a new thread:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropboxforum.com/hc/en-us/community/posts/203922673-What-is-root-folder-id" rel="nofollow noreferrer"&gt;https://www.dropboxforum.com/hc/en-us/community/posts/203922673-What-is-root-folder-id&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2015 13:54:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-token-expiry-Folder-or-file-parentId/m-p/82837#M2454</guid>
      <dc:creator>m. chiuq</dc:creator>
      <dc:date>2015-12-18T13:54:12Z</dc:date>
    </item>
  </channel>
</rss>

