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 |
postForm(String url,
okhttp3.FormBody formBody) |
okhttp3.Response |
postJsonPostRequest(String url,
Object obj) |
okhttp3.Response |
postMultipart(String url,
okhttp3.MultipartBody multipartBody) |
public SlackHttpClient()
public SlackHttpClient(okhttp3.OkHttpClient okHttpClient)
public okhttp3.Response postMultipart(String url, okhttp3.MultipartBody multipartBody) throws IOException
IOExceptionpublic okhttp3.Response postForm(String url, okhttp3.FormBody formBody) throws IOException
IOExceptionpublic okhttp3.Response postJsonPostRequest(String url, Object obj) 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 © 2016. All rights reserved.