File tree 1 file changed +14
-0
lines changed
src/main/java/com/dropbox/core
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -295,6 +295,20 @@ public DbxAuthFinish finishFromCode(String code) throws DbxException {
295
295
return finish (code );
296
296
}
297
297
298
+ /**
299
+ * Call this after the user has visited the authorizaton URL with a redirectUrl and copy/pasted
300
+ * the authorization code that Dropbox gave them.
301
+ *
302
+ * @param code The authorization code shown to the user when they clicked "Allow" on the
303
+ * authorization, page on the Dropbox website, never {@code null}.
304
+ * @param redirectUri The original redirect URI used by {@link #authorize}, never {@code null}.
305
+ *
306
+ * @throws DbxException if an error occurs communicating with Dropbox.
307
+ */
308
+ public DbxAuthFinish finishFromCode (String code , String redirectUri ) throws DbxException {
309
+ return finish (code , redirectUri , null );
310
+ }
311
+
298
312
/**
299
313
* Call this after the user has visited the authorizaton URL and Dropbox has redirected them
300
314
* back to you at the redirect URI.
You can’t perform that action at this time.
0 commit comments