public final class OAuthSessionFactory extends Dispatcher implements java.io.Closeable
Clients should call start(), newAuthorizeUrl(java.lang.String, java.lang.String, okhttp3.slack.OAuthSessionFactory.Listener) and close() in that order.
Clients may request multiple sessions.
| Modifier and Type | Class and Description |
|---|---|
static interface |
OAuthSessionFactory.Listener |
| Constructor and Description |
|---|
OAuthSessionFactory(SlackApi slackApi) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
MockResponse |
dispatch(RecordedRequest request)
When the browser hits the redirect URL, use the provided code to ask Slack for a session.
|
HttpUrl |
newAuthorizeUrl(java.lang.String scopes,
java.lang.String team,
OAuthSessionFactory.Listener listener) |
void |
start() |
peek, shutdownpublic OAuthSessionFactory(SlackApi slackApi)
public void start()
throws java.lang.Exception
java.lang.Exceptionpublic HttpUrl newAuthorizeUrl(java.lang.String scopes, java.lang.String team, OAuthSessionFactory.Listener listener)
public MockResponse dispatch(RecordedRequest request)
dispatch in class Dispatcherpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableCopyright © 2019. All Rights Reserved.