Package com.twilio.http
Class TwilioRestClient
- java.lang.Object
-
- com.twilio.http.TwilioRestClient
-
public class TwilioRestClient extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TwilioRestClient.Builder
-
Field Summary
Fields Modifier and Type Field Description static int
HTTP_STATUS_CODE_CREATED
static int
HTTP_STATUS_CODE_NO_CONTENT
static int
HTTP_STATUS_CODE_OK
static int
HTTP_STATUS_CODE_UNAUTHORIZED
static Predicate<Integer>
SUCCESS
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
logRequest(Request request)
Logging debug information about HTTP request.Response
request(Request request)
Make a request to Twilio.
-
-
-
Field Detail
-
HTTP_STATUS_CODE_CREATED
public static final int HTTP_STATUS_CODE_CREATED
- See Also:
- Constant Field Values
-
HTTP_STATUS_CODE_NO_CONTENT
public static final int HTTP_STATUS_CODE_NO_CONTENT
- See Also:
- Constant Field Values
-
HTTP_STATUS_CODE_UNAUTHORIZED
public static final int HTTP_STATUS_CODE_UNAUTHORIZED
- See Also:
- Constant Field Values
-
HTTP_STATUS_CODE_OK
public static final int HTTP_STATUS_CODE_OK
- See Also:
- Constant Field Values
-
-