File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
src/main/java/com/dropbox/core Expand file tree Collapse file tree 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 {
295295 return finish (code );
296296 }
297297
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+
298312 /**
299313 * Call this after the user has visited the authorizaton URL and Dropbox has redirected them
300314 * back to you at the redirect URI.
You can’t perform that action at this time.
0 commit comments