public final class PhraseanetApiCallService extends Object
Modifier and Type | Method and Description |
---|---|
static net.sf.json.JSONObject |
getPostResponse(String strUrl,
Map<String,List<String>> mapParameters,
Account account)
Get the response of a POST request
|
static net.sf.json.JSONObject |
getResponse(String strRequest,
Account account)
Get a response for a GET request
|
public static net.sf.json.JSONObject getResponse(String strRequest, Account account) throws PhraseanetApiCallException
strRequest
- The requestaccount
- the user phraseanet accountPhraseanetApiCallException
- if an error occurspublic static net.sf.json.JSONObject getPostResponse(String strUrl, Map<String,List<String>> mapParameters, Account account) throws PhraseanetApiCallException
strUrl
- The URLmapParameters
- The parametersaccount
- the user accountPhraseanetApiCallException
- if an error occursCopyright © 2018 City of Paris. All rights reserved.