public class SlackHttpClient extends Object
| Constructor and Description |
|---|
SlackHttpClient() |
SlackHttpClient(okhttp3.OkHttpClient okHttpClient) |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
buildJsonResponse(okhttp3.Response response,
Class<T> clazz)
Deprecated.
|
okhttp3.Response |
delete(okhttp3.Request.Builder requestBuilder) |
SlackConfig |
getConfig() |
<T> T |
parseJsonResponse(okhttp3.Response response,
Class<T> clazz) |
okhttp3.Response |
postForm(String url,
okhttp3.FormBody formBody) |
okhttp3.Response |
postFormWithBearerHeader(String url,
String token,
okhttp3.FormBody formBody) |
okhttp3.Response |
postJsonPostRequest(String url,
Object obj) |
okhttp3.Response |
postMultipart(String url,
String token,
okhttp3.MultipartBody multipartBody) |
void |
runHttpResponseListeners(okhttp3.Response response,
String body) |
void |
setConfig(SlackConfig config) |
public SlackHttpClient()
public SlackHttpClient(okhttp3.OkHttpClient okHttpClient)
public SlackConfig getConfig()
public void setConfig(SlackConfig config)
public okhttp3.Response postMultipart(String url, String token, okhttp3.MultipartBody multipartBody) throws IOException
IOExceptionpublic okhttp3.Response postForm(String url, okhttp3.FormBody formBody) throws IOException
IOExceptionpublic okhttp3.Response postFormWithBearerHeader(String url, String token, okhttp3.FormBody formBody) throws IOException
IOExceptionpublic okhttp3.Response postJsonPostRequest(String url, Object obj) throws IOException
IOExceptionpublic okhttp3.Response delete(okhttp3.Request.Builder requestBuilder)
throws IOException
IOExceptionpublic void runHttpResponseListeners(okhttp3.Response response,
String body)
public <T> T parseJsonResponse(okhttp3.Response response,
Class<T> clazz)
throws IOException,
SlackApiException
IOExceptionSlackApiException@Deprecated public static <T> T buildJsonResponse(okhttp3.Response response, Class<T> clazz) throws IOException, SlackApiException
IOExceptionSlackApiExceptionCopyright © 2019. All Rights Reserved.