<?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: Authentication with new api v2, generated token, aways return users null to me in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Authentication-with-new-api-v2-generated-token-aways-return/m-p/257226#M14912</link>
    <description>What you have seems correct. There are a few examples here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/1b6cde9b789f5eb089cde4bbe588da2cea85b597/ReadMe.md#link-an-account" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-java/blob/1b6cde9b789f5eb089cde4bbe588da2cea85b597/ReadMe.md#link-an-account&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/7ecc15cf0f51d6ae2ba5cdb334aac2c2f3474b87/examples/account-info/src/main/java/com/dropbox/core/examples/account_info/Main.java#L58" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-java/blob/7ecc15cf0f51d6ae2ba5cdb334aac2c2f3474b87/examples/account-info/src/main/java/com/dropbox/core/examples/account_info/Main.java#L58&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/c6aeb4bf3011e6b803eaa325ea20a52f8412ee0f/examples/tutorial/src/main/java/com/dropbox/core/examples/tutorial/Main.java#L29" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-java/blob/c6aeb4bf3011e6b803eaa325ea20a52f8412ee0f/examples/tutorial/src/main/java/com/dropbox/core/examples/tutorial/Main.java#L29&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;A few things to help track this down:&lt;BR /&gt;- How are you setting mDboxClientV2? (Presumably you're calling that init method?)&lt;BR /&gt;- What version number of the SDK do you have installed?&lt;BR /&gt;- What error exactly are you getting?</description>
    <pubDate>Tue, 19 Dec 2017 14:25:16 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-12-19T14:25:16Z</dc:date>
    <item>
      <title>Authentication with new api v2, generated token, aways return users null to me</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Authentication-with-new-api-v2-generated-token-aways-return/m-p/257132#M14908</link>
      <description>&lt;P&gt;Dear dropbox comunity,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot complete a full authentication within my dropbox account and my android application. The app is in development status, with generated token by console, and the users object is always null after connection....&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;mDboxClientV2&lt;/SPAN&gt;.users().getCurrentAccount()&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to ask you, why i'm always getting a half authentication with this v2 method, how to get the current account?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;public static &lt;/SPAN&gt;DbxClientV2 init(String accessToken) {&lt;BR /&gt;    &lt;SPAN&gt;if &lt;/SPAN&gt;(&lt;SPAN&gt;sDbxClient &lt;/SPAN&gt;== &lt;SPAN&gt;null&lt;/SPAN&gt;) {&lt;BR /&gt;        DbxRequestConfig requestConfig = DbxRequestConfig.&lt;SPAN&gt;newBuilder&lt;/SPAN&gt;(&lt;SPAN&gt;"fotosinspecc"&lt;/SPAN&gt;)&lt;BR /&gt;                .withHttpRequestor(&lt;SPAN&gt;new &lt;/SPAN&gt;OkHttp3Requestor(OkHttp3Requestor.&lt;SPAN&gt;defaultOkHttpClient&lt;/SPAN&gt;()))&lt;BR /&gt;                .build();&lt;BR /&gt;&lt;BR /&gt;        &lt;SPAN&gt;sDbxClient &lt;/SPAN&gt;= &lt;SPAN&gt;new &lt;/SPAN&gt;DbxClientV2(requestConfig, accessToken);&lt;BR /&gt;&lt;BR /&gt;        &lt;SPAN&gt;//Constants.setClient(sDbxClient);&lt;BR /&gt;&lt;/SPAN&gt;    }&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;return &lt;/SPAN&gt;&lt;SPAN&gt;sDbxClient&lt;/SPAN&gt;;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for youe com=ments, regards&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:16:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Authentication-with-new-api-v2-generated-token-aways-return/m-p/257132#M14908</guid>
      <dc:creator>luiseliberal</dc:creator>
      <dc:date>2019-05-29T09:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication with new api v2, generated token, aways return users null to me</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Authentication-with-new-api-v2-generated-token-aways-return/m-p/257226#M14912</link>
      <description>What you have seems correct. There are a few examples here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/1b6cde9b789f5eb089cde4bbe588da2cea85b597/ReadMe.md#link-an-account" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-java/blob/1b6cde9b789f5eb089cde4bbe588da2cea85b597/ReadMe.md#link-an-account&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/7ecc15cf0f51d6ae2ba5cdb334aac2c2f3474b87/examples/account-info/src/main/java/com/dropbox/core/examples/account_info/Main.java#L58" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-java/blob/7ecc15cf0f51d6ae2ba5cdb334aac2c2f3474b87/examples/account-info/src/main/java/com/dropbox/core/examples/account_info/Main.java#L58&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/c6aeb4bf3011e6b803eaa325ea20a52f8412ee0f/examples/tutorial/src/main/java/com/dropbox/core/examples/tutorial/Main.java#L29" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-java/blob/c6aeb4bf3011e6b803eaa325ea20a52f8412ee0f/examples/tutorial/src/main/java/com/dropbox/core/examples/tutorial/Main.java#L29&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;A few things to help track this down:&lt;BR /&gt;- How are you setting mDboxClientV2? (Presumably you're calling that init method?)&lt;BR /&gt;- What version number of the SDK do you have installed?&lt;BR /&gt;- What error exactly are you getting?</description>
      <pubDate>Tue, 19 Dec 2017 14:25:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Authentication-with-new-api-v2-generated-token-aways-return/m-p/257226#M14912</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-12-19T14:25:16Z</dc:date>
    </item>
  </channel>
</rss>

