public final class SlackClient extends Object
Constructor and Description |
---|
SlackClient(SlackApi slackApi) |
Modifier and Type | Method and Description |
---|---|
void |
awaitAccessToken(okio.Timeout timeout)
Waits for an OAuth session for this client to be set.
|
void |
initOauthSession(OAuthSession session)
Set the OAuth session for this client.
|
static void |
main(String... args) |
void |
requestOauthSession(String scopes,
String team)
Shows a browser URL to authorize this app to act as this user.
|
void |
startRtm()
Starts a real time messaging session.
|
public SlackClient(SlackApi slackApi)
public void requestOauthSession(String scopes, String team) throws Exception
Exception
public void initOauthSession(OAuthSession session)
public void awaitAccessToken(okio.Timeout timeout) throws InterruptedIOException
InterruptedIOException
public void startRtm() throws IOException
IOException
Copyright © 2017. All Rights Reserved.