public class HttpClient extends Object
| Constructor and Description |
|---|
HttpClient(ApiConfiguration apiConfig)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
post(String path,
byte[] jsonBytes)
Posts data to stackify
|
String |
post(String path,
byte[] jsonBytes,
boolean gzip)
Posts data to stackify
|
public HttpClient(ApiConfiguration apiConfig)
config - API configurationpublic String post(String path, byte[] jsonBytes) throws IOException, HttpException
path - REST pathjsonBytes - JSON bytesIOExceptionHttpExceptionpublic String post(String path, byte[] jsonBytes, boolean gzip) throws IOException, HttpException
path - REST pathjsonBytes - JSON bytesgzip - True if the post should be gzipped, false otherwiseIOExceptionHttpExceptionCopyright © 2017 Stackify, LLC. All Rights Reserved.