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) |
static void |
debugLog(okhttp3.Response response,
String body) |
okhttp3.Response |
delete(okhttp3.Request.Builder requestBuilder) |
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) |
public SlackHttpClient()
public SlackHttpClient(okhttp3.OkHttpClient okHttpClient)
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 static void debugLog(okhttp3.Response response,
String body)
throws IOException
IOExceptionpublic static <T> T buildJsonResponse(okhttp3.Response response,
Class<T> clazz)
throws IOException,
SlackApiException
IOExceptionSlackApiExceptionCopyright © 2019. All Rights Reserved.