public class CustomRequest extends AbstractApiRequest
baseUrl, body, credentials, headers, method, path, queryParams| Modifier and Type | Method and Description |
|---|---|
String |
executeAsync() |
static CustomRequest |
GetInstance(Credentials credentials,
String baseUrl) |
CustomRequest |
withBody(org.apache.http.entity.ByteArrayEntity value) |
CustomRequest |
withBody(org.json.JSONObject value) |
CustomRequest |
withBody(String value) |
CustomRequest |
withHeader(String name,
String value) |
CustomRequest |
withMethod(String value) |
CustomRequest |
withQueryParameters(Map value) |
CustomRequest |
withRoute(String value) |
addAgeOfPeople, addArtists, addCollectionCodes, addCompositions, addEditorialSegments, addEditorialVideoTypes, addEntityUris, addEthnicity, addEventIds, addFileTypes, addFrameRates, addGraphicalStyles, addKeywordIds, addLicenseModels, addNumberOfPeople, addOrientations, addProductTypes, addResponseFields, addSpecificPeoplepublic static CustomRequest GetInstance(Credentials credentials, String baseUrl)
public String executeAsync() throws SdkException
executeAsync in class AbstractApiRequestSdkExceptionpublic CustomRequest withMethod(String value)
value - The type of HTTP method - GET, POST, PUT, or DELETEpublic CustomRequest withRoute(String value)
value - The route to append to "https://api.gettyimages.com/v3"public CustomRequest withQueryParameters(Map value)
value - A Map of key value pairs where the key is the name of the parameter and the value is the associated value(s)public CustomRequest withHeader(String name, String value)
name - The header field namevalue - The value associated with the fieldpublic CustomRequest withBody(org.json.JSONObject value) throws Exception
value - A JSONObject to be passed as the body of the requestExceptionpublic CustomRequest withBody(String value) throws Exception
value - A String to be passed as the body of the requestExceptionpublic CustomRequest withBody(org.apache.http.entity.ByteArrayEntity value)
value - A ByteArrayEntity to be passed as the body of the requestCopyright © 2020. All rights reserved.