Package io.sendon.base
Class SendonClient
- java.lang.Object
-
- io.sendon.base.SendonClient
-
- Direct Known Subclasses:
SendonContacts,SendonKakao,SendonPayment,SendonPoint,SendonSender,SendonSms
public class SendonClient extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected com.google.gson.Gsongsonprotected HttpClienthttpClient
-
Constructor Summary
Constructors Constructor Description SendonClient(String userId, String apiKey)SendonClient(String userId, String apiKey, boolean useOkHttp)SendonClient(String baseUrl, String userId, String apiKey, boolean useOkHttp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdelete(String path)Stringget(String path)SendonJsonResponseparseJsonResponse(String jsonResponse)Stringpost(String path, String body)StringpostImagesWithMultipartFormData(String path, List<File> images)StringpostImageWithMultipartFormData(String path, File image)Stringput(String path, String body)
-
-
-
Field Detail
-
httpClient
protected HttpClient httpClient
-
gson
protected com.google.gson.Gson gson
-
-
Method Detail
-
postImageWithMultipartFormData
public String postImageWithMultipartFormData(String path, File image)
-
postImagesWithMultipartFormData
public String postImagesWithMultipartFormData(String path, List<File> images)
-
parseJsonResponse
public SendonJsonResponse parseJsonResponse(String jsonResponse)
-
-