BackendRequester
Defines methods sending requests to PrivMX Bridge API.
Static Methods
backendRequest
Sends a request to PrivMX Bridge API using access token for authorization.
public static String backendRequest(
String serverUrl,
String accessToken,
String method,
String paramsAsJson
)
Name | Type | Description |
---|---|---|
serverUrl | String | PrivMX Bridge server URL |
accessToken | String | token for authorization (see PrivMX Bridge API for more details) |
method | String | API method to call |
paramsAsJson | String | API method's parameters in JSON format |
Type | Description |
---|---|
String | JSON string representing raw server response |
backendRequest
Sends request to PrivMX Bridge API.
public static String backendRequest(
String serverUrl,
String method,
String paramsAsJson
)
Name | Type | Description |
---|---|---|
serverUrl | String | PrivMX Bridge server URL |
method | String | API method to call |
paramsAsJson | String | API method's parameters in JSON format |
Type | Description |
---|---|
String | JSON string representing raw server response |
backendRequest
Sends a request to PrivMX Bridge API using pair of API KEY ID and API KEY SECRET for authorization.
public static String backendRequest(
String serverUrl,
String apiKeyId,
String apiKeySecret,
long mode,
String method,
String paramsAsJson
)
Name | Type | Description |
---|---|---|
serverUrl | String | PrivMX Bridge server URL |
apiKeyId | String | API KEY ID (see PrivMX Bridge API for more details) |
apiKeySecret | String | API KEY SECRET (see PrivMX Bridge API for more details) |
mode | long | allows you to set whether the request should be signed (mode = 1) or plain (mode = 0) |
method | String | API method to call |
paramsAsJson | String | API method's parameters in JSON format |
Type | Description |
---|---|
String | JSON string representing raw server response |