Skip to content

Commit c21482b

Browse files
committed
Updated README
1 parent 134b173 commit c21482b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,16 @@ Client client = new Client(clientId, scope, redirectURL, clientSecret);
100100
// without login
101101
Client client = new Client(clientId, scope, redirectURL, clientSecret, false);
102102
client.login();
103+
104+
// With tokens provided from outside source
105+
String accessToken = "<access_token>";
106+
String refreshToken = "<refresh_token>"
107+
String tokenType = "bearer";
108+
long expiresIn = 0;
109+
110+
Client client = new Client(clientId, scope, redirectURL, clientSecret, accessToken, refreshToken, tokenType, expiresIn);
111+
112+
103113
```
104114

105115

0 commit comments

Comments
 (0)