Skip to content

Commit a6b5b18

Browse files
author
Karl Rieb
committed
Updated GoogleAppEngineRequestor javadoc to include a sample.
1 parent 511da59 commit a6b5b18

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/main/java/com/dropbox/core/http/GoogleAppEngineRequestor.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,16 @@
2727
* <p> If your app runs in Google App Engine, it is strongly recommended to use this Requestor to
2828
* ensure certificate validation is performed on all requests.
2929
*
30-
* <p> To use this, pass an instance to the {@link com.dropbox.core.DbxRequestConfig} constructor.
30+
* <p> To use this, pass an instance to the {@link com.dropbox.core.DbxRequestConfig} constructor:
31+
*
32+
* <pre>
33+
* DbxRequestConfig config = DbxRequestConfig.newBuilder("MyAppEngineApp/1.0")
34+
* .withHttpRequestor(new GoogleAppEngineRequestor())
35+
* .build();
36+
*
37+
* String accessToken = ...;
38+
* DbxClientV2 client = new DbxClientV2(config, accessToken);
39+
* </pre>
3140
*/
3241
public class GoogleAppEngineRequestor extends HttpRequestor {
3342
private final URLFetchService service;

0 commit comments

Comments
 (0)