Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

luiseliberal's avatar
luiseliberal
New member | Level 2
8 years ago

Authentication with new api v2, generated token, aways return users null to me

Dear dropbox comunity, 

 

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....

mDboxClientV2.users().getCurrentAccount()

 

 

I have to ask you, why i'm always getting a half authentication with this v2 method, how to get the current account?

 

public static DbxClientV2 init(String accessToken) {
if (sDbxClient == null) {
DbxRequestConfig requestConfig = DbxRequestConfig.newBuilder("fotosinspecc")
.withHttpRequestor(new OkHttp3Requestor(OkHttp3Requestor.defaultOkHttpClient()))
.build();

sDbxClient = new DbxClientV2(requestConfig, accessToken);

//Constants.setClient(sDbxClient);
}

return sDbxClient;
}

 

 

Thanks in advance for youe com=ments, regards

1 Reply

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!