Skip to main content
reference

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
)

NameTypeDescription
serverUrlStringPrivMX Bridge server URL
accessTokenStringtoken for authorization (see PrivMX Bridge API for more details)
methodStringAPI method to call
paramsAsJsonStringAPI method's parameters in JSON format

TypeDescription
String JSON string representing raw server response

backendRequest

Sends request to PrivMX Bridge API.

public static String backendRequest(
String serverUrl,
String method,
String paramsAsJson
)

NameTypeDescription
serverUrlStringPrivMX Bridge server URL
methodStringAPI method to call
paramsAsJsonStringAPI method's parameters in JSON format

TypeDescription
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
)

NameTypeDescription
serverUrlStringPrivMX Bridge server URL
apiKeyIdStringAPI KEY ID (see PrivMX Bridge API for more details)
apiKeySecretStringAPI KEY SECRET (see PrivMX Bridge API for more details)
modelongallows you to set whether the request should be signed (mode = 1) or plain (mode = 0)
methodStringAPI method to call
paramsAsJsonStringAPI method's parameters in JSON format

TypeDescription
String JSON string representing raw server response