fr.paris.lutece.plugins.mylutece.modules.parisconnect.service
public class ParisConnectAPI extends Object
| Constructor and Description |
|---|
ParisConnectAPI() |
| Modifier and Type | Method and Description |
|---|---|
String |
callMethod(String strMethod,
Map<String,String> mapParameters)
Call a Method of the API
|
String |
callMethod(String strMethod,
Map<String,String> mapParameters,
boolean bJSON)
Call a Method of the API
|
String |
getApiId()
Returns the ApiId
|
Map |
getMap()
Returns the Map
|
String |
getName()
Returns the Name
|
String |
getSecretKey()
Returns the SecretKey
|
String |
getUrl()
Returns the Url
|
void |
setApiId(String strApiId)
Sets the ApiId
|
void |
setMap(Map map)
Sets the Map
|
void |
setName(String strName)
Sets the Name
|
void |
setSecretKey(String strSecretKey)
Sets the SecretKey
|
void |
setUrl(String strUrl)
Sets the Url
|
public String getName()
public void setName(String strName)
strName - The Namepublic String getUrl()
public void setUrl(String strUrl)
strUrl - The Urlpublic String getApiId()
public void setApiId(String strApiId)
strApiId - The ApiIdpublic String getSecretKey()
public void setSecretKey(String strSecretKey)
strSecretKey - The SecretKeypublic Map getMap()
public void setMap(Map map)
map - The Mappublic String callMethod(String strMethod, Map<String,String> mapParameters) throws ParisConnectAPIException
strMethod - The method namemapParameters - ParametersParisConnectAPIException - if an error occurspublic String callMethod(String strMethod, Map<String,String> mapParameters, boolean bJSON) throws ParisConnectAPIException
strMethod - The method namemapParameters - ParametersbJSON - Is JSON outputParisConnectAPIException - if an error occursCopyright © 2014 Mairie de Paris. All rights reserved.