public class TokensRevokedEvent extends Object implements Event
The example above details the complete Events API payload, including the event wrapper. Use the team_id to identify the associated workspace.
The inner event's tokens field is a hash keyed with the types of revoked tokens. oauth tokens are user-based tokens negotiated with OAuth or app installation, typically beginning with xoxp-. bot tokens are also negotiated in that process, but belong specifically to any bot user contained in your app and begin with xoxb-.
Each key contains an array of user IDs, not the actual token strings representing your revoked tokens. To use this event most effectively, store your tokens along side user IDs and team IDs.
https://api.slack.com/events/tokens_revoked
Modifier and Type | Class and Description |
---|---|
static class |
TokensRevokedEvent.Tokens |
Constructor and Description |
---|
TokensRevokedEvent() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
TokensRevokedEvent.Tokens |
getTokens() |
String |
getType() |
int |
hashCode() |
void |
setTokens(TokensRevokedEvent.Tokens tokens) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getSubtype
public static final String TYPE_NAME
public TokensRevokedEvent.Tokens getTokens()
public void setTokens(TokensRevokedEvent.Tokens tokens)
protected boolean canEqual(Object other)
Copyright © 2020. All rights reserved.