<?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: Java V2 - Equvalent to V1 API's in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-V2-Equvalent-to-V1-API-s/m-p/157660#M5307</link>
    <description>&lt;P&gt;Also, I was disappointed. When I rename a file it sends a delete followed by an "add". I was expecting the new API to only report a "modify" to the given file id.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Mar 2016 06:23:55 GMT</pubDate>
    <dc:creator>Joel T.9</dc:creator>
    <dc:date>2016-03-09T06:23:55Z</dc:date>
    <item>
      <title>Java V2 - Equvalent to V1 API's</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-V2-Equvalent-to-V1-API-s/m-p/157652#M5299</link>
      <description>&lt;P&gt;I'm looking for the following API's that exist in V1:&lt;/P&gt;
&lt;P&gt;1) client.getDelta(deltaCursor)&lt;BR /&gt;2) client.createTemporaryDirectUrl(path)&lt;BR /&gt;3) client.disableAccessToken()&lt;/P&gt;
&lt;P&gt;For the first one, getDelta, it appears this would be equivalent:&lt;BR /&gt; ListFolderResult result = client.files().listFolderContinue(deltaCursor);&lt;BR /&gt;&lt;BR /&gt;However, I couldn't tell how to determine if an entry was deleted, the previous API I used DbxEntry.metadata == null.&lt;BR /&gt;&lt;BR /&gt;For 2&amp;amp;3, maybe using the old API is supported still? The only reason I need the new API is to use the file ID support mostly for detecting file renames.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:35:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-V2-Equvalent-to-V1-API-s/m-p/157652#M5299</guid>
      <dc:creator>Joel T.9</dc:creator>
      <dc:date>2019-05-29T09:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Java V2 - Equvalent to V1 API's</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-V2-Equvalent-to-V1-API-s/m-p/157653#M5300</link>
      <description>&lt;P&gt;1) Yes, in API v2, you would use listFolder and listFolderContinue instead of getDelta. You should check if each entry is a FileMetadata, FolderMetadata, or DeletedMetadata to distinguish between files, folders, and deleted items, respectively.&lt;/P&gt;
&lt;P&gt;2) API v2 doesn't currently have an equivalent of&amp;nbsp;createTemporaryDirectUrl,&amp;nbsp;but I'll be sure to pass this along as a feature request.&lt;/P&gt;
&lt;P&gt;3) API v2 also doesn't currently have an equivalent of disableAccessToken,&amp;nbsp;but I'll be sure to pass this along as a feature request too.&lt;/P&gt;
&lt;P&gt;And yes, for the functionality without equivalents in API v2, you can continue using v1.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 03:00:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-V2-Equvalent-to-V1-API-s/m-p/157653#M5300</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-03-09T03:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Java V2 - Equvalent to V1 API's</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-V2-Equvalent-to-V1-API-s/m-p/157654#M5301</link>
      <description>&lt;P&gt;Thanks for the quick response. Having a DeletedMetadata makes sense.&amp;nbsp;I was however surprised that DeletedMetadata doesn't have a getId() for the item being deleted.&lt;/P&gt;
&lt;P&gt;Is there an equivalent for "page reset" in V2?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; DbxDelta&amp;lt;DbxEntry&amp;gt; page = client.getDelta(deltaCursor);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if (page.reset) {&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 03:07:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-V2-Equvalent-to-V1-API-s/m-p/157654#M5301</guid>
      <dc:creator>Joel T.9</dc:creator>
      <dc:date>2016-03-09T03:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Java V2 - Equvalent to V1 API's</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-V2-Equvalent-to-V1-API-s/m-p/157655#M5302</link>
      <description>&lt;P&gt;That's correct, DeletedMetadata doesn't contain a file ID, but we'll consider this a feature request as well.&lt;/P&gt;
&lt;P&gt;And yes, &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#listFolderContinue-java.lang.String-" target="_blank" rel="nofollow noreferrer"&gt;listFolderContinue&lt;/A&gt;&amp;nbsp;can raise&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.0.x/com/dropbox/core/v2/files/ListFolderContinueErrorException.html" target="_blank" rel="nofollow noreferrer"&gt;ListFolderContinueErrorException&lt;/A&gt;&amp;nbsp;where&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.0.x/com/dropbox/core/v2/files/ListFolderContinueError.html#RESET" target="_blank" rel="nofollow noreferrer"&gt;ListFolderContinueError.RESET&lt;/A&gt; would indicate a reset, in which case you should start over with &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#listFolder-java.lang.String-" target="_blank" rel="nofollow noreferrer"&gt;listFolder&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 03:15:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-V2-Equvalent-to-V1-API-s/m-p/157655#M5302</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-03-09T03:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Java V2 - Equvalent to V1 API's</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-V2-Equvalent-to-V1-API-s/m-p/157656#M5303</link>
      <description>&lt;P&gt;DeletedMetadata.getId() makes more sense to me, fortunately, I have a workaround.&lt;/P&gt;
&lt;P&gt;My only issue remaining is compiling with maven while trying to support both versions at the same time, because the SDK names are identical (between 1.8.1 &amp;amp; 2.0.0). A question for the maven forums, on how to allow both to be used.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 04:57:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-V2-Equvalent-to-V1-API-s/m-p/157656#M5303</guid>
      <dc:creator>Joel T.9</dc:creator>
      <dc:date>2016-03-09T04:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Java V2 - Equvalent to V1 API's</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-V2-Equvalent-to-V1-API-s/m-p/157657#M5304</link>
      <description>&lt;P&gt;Unless I misunderstand your scenario, you shouldn't need to include both. The 2.0.0 version also include the API v1 calls that 1.8.1 has. I.e., it contains both&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.0.x/com/dropbox/core/v1/DbxClientV1.html" target="_blank" rel="nofollow noreferrer"&gt;DbxClientV1&lt;/A&gt; and&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.0.x/com/dropbox/core/v2/DbxClientV2.html" target="_blank" rel="nofollow noreferrer"&gt;DbxClientV2&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 05:04:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-V2-Equvalent-to-V1-API-s/m-p/157657#M5304</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-03-09T05:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Java V2 - Equvalent to V1 API's</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-V2-Equvalent-to-V1-API-s/m-p/157658#M5305</link>
      <description>&lt;P&gt;Oh.. cool&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 05:24:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-V2-Equvalent-to-V1-API-s/m-p/157658#M5305</guid>
      <dc:creator>Joel T.9</dc:creator>
      <dc:date>2016-03-09T05:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Java V2 - Equvalent to V1 API's</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-V2-Equvalent-to-V1-API-s/m-p/157659#M5306</link>
      <description>&lt;P&gt;I see the main thing changed for the V1 API is the exceptions. They convert pretty straight-forward, except for one:&amp;nbsp;DbxException.BadResponse&lt;/P&gt;
&lt;P&gt;Is that now ProtocolException?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 05:38:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-V2-Equvalent-to-V1-API-s/m-p/157659#M5306</guid>
      <dc:creator>Joel T.9</dc:creator>
      <dc:date>2016-03-09T05:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Java V2 - Equvalent to V1 API's</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-V2-Equvalent-to-V1-API-s/m-p/157660#M5307</link>
      <description>&lt;P&gt;Also, I was disappointed. When I rename a file it sends a delete followed by an "add". I was expecting the new API to only report a "modify" to the given file id.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 06:23:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-V2-Equvalent-to-V1-API-s/m-p/157660#M5307</guid>
      <dc:creator>Joel T.9</dc:creator>
      <dc:date>2016-03-09T06:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Java V2 - Equvalent to V1 API's</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-V2-Equvalent-to-V1-API-s/m-p/157661#M5308</link>
      <description>&lt;P&gt;Do you mean&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.0.x/com/dropbox/core/BadResponseException.html" target="_blank" rel="nofollow noreferrer"&gt;com.dropbox.core.BadResponseException&lt;/A&gt;? Each method should document the exceptions it can through.&amp;nbsp;For example, the new &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#download-java.lang.String-java.lang.String-" target="_blank" rel="nofollow noreferrer"&gt;download&lt;/A&gt; method can throw&amp;nbsp;IllegalArgumentException,&amp;nbsp;DownloadErrorException, or&amp;nbsp;DbxException. For example, it would throw&amp;nbsp;IllegalArgumentException if a parameter is in the wrong format, e.g., "test.txt" instead of "/test.txt".&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 06:26:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-V2-Equvalent-to-V1-API-s/m-p/157661#M5308</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-03-09T06:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Java V2 - Equvalent to V1 API's</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-V2-Equvalent-to-V1-API-s/m-p/157662#M5309</link>
      <description>&lt;P&gt;Quick follow up here for anyone looking who hasn't already seen it, the API v2 Java SDK does now have the equivalent of&amp;nbsp;createTemporaryDirectUrl as&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#getTemporaryLink-java.lang.String-" target="_blank" rel="nofollow noreferrer"&gt;getTemporaryLink&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 02:49:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-V2-Equvalent-to-V1-API-s/m-p/157662#M5309</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-08-03T02:49:33Z</dc:date>
    </item>
  </channel>
</rss>

