com.vspr.ai.slack.service.SlackAPI Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of slack-api Show documentation
Show all versions of slack-api Show documentation
another slack api for java
package com.vspr.ai.slack.service;
import com.vspr.ai.slack.api.CreateChannelResponse;
import com.vspr.ai.slack.api.ListUsersResponse;
import com.vspr.ai.slack.api.Message;
import com.vspr.ai.slack.api.OauthAccessResponse;
import com.vspr.ai.slack.api.SlackMessageResponse;
import java.net.URI;
import javax.annotation.Nullable;
/**
* Created by cobb on 7/18/17.
*/
public interface SlackAPI {
/**
* Post the specified message to the slack web com.vspr.ai.slack.api
*/
SlackMessageResponse postMessage(Message message);
/**
* Post the specified message to the slack web com.vspr.ai.slack.api
*/
void postMessageToResponseUrl(Message message, URI uri);
/**
* Get a list of Users from the slack API.
*/
ListUsersResponse listUsers(String token, @Nullable String cursor, int limit, boolean presence);
/**
* Create a new slack channel
*/
CreateChannelResponse createChannel(String name, String userToken);
/**
* Request Access via the Slack Oauth flow.
*/
OauthAccessResponse getAccess(String code);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy