backendRequest

expect fun backendRequest(serverUrl: String, accessToken: String, method: String, paramsAsJson: String): String

Sends a request to PrivMX Bridge API using access token for authorization.

Return

JSON String representing raw server response

Parameters

serverUrl

PrivMX Bridge server URL

accessToken

token for authorization (see PrivMX Bridge API for more details)

method

API method to call

paramsAsJson

API method's parameters in JSON format

Throws

thrown when method encounters an exception.

thrown when method encounters an unknown exception.


expect fun backendRequest(serverUrl: String, method: String, paramsAsJson: String): String

Sends request to PrivMX Bridge API.

Return

JSON String representing raw server response

Parameters

serverUrl

PrivMX Bridge server URL

method

API method to call

paramsAsJson

API method's parameters in JSON format


expect fun backendRequest(serverUrl: String, apiKeyId: String, apiKeySecret: String, mode: Long, method: String, paramsAsJson: String): String

Sends a request to PrivMX Bridge API using pair of API KEY ID and API KEY SECRET for authorization.

Return

JSON String representing raw server response

Parameters

serverUrl

PrivMX Bridge server URL

apiKeyId

API KEY ID (see PrivMX Bridge API for more details)

apiKeySecret

API KEY SECRET (see PrivMX Bridge API for more details)

mode

allows you to set whether the request should be signed (mode = 1) or plain (mode = 0)

method

API method to call

paramsAsJson

API method's parameters in JSON format

actual fun backendRequest(serverUrl: String, accessToken: String, method: String, paramsAsJson: String): String

Sends a request to PrivMX Bridge API using access token for authorization.

Return

JSON String representing raw server response

Parameters

serverUrl

PrivMX Bridge server URL

accessToken

token for authorization (see PrivMX Bridge API for more details)

method

API method to call

paramsAsJson

API method's parameters in JSON format

Throws

thrown when method encounters an exception.

thrown when method encounters an unknown exception.


actual fun backendRequest(serverUrl: String, method: String, paramsAsJson: String): String

Sends request to PrivMX Bridge API.

Return

JSON String representing raw server response

Parameters

serverUrl

PrivMX Bridge server URL

method

API method to call

paramsAsJson

API method's parameters in JSON format


actual fun backendRequest(serverUrl: String, apiKeyId: String, apiKeySecret: String, mode: Long, method: String, paramsAsJson: String): String

Sends a request to PrivMX Bridge API using pair of API KEY ID and API KEY SECRET for authorization.

Return

JSON String representing raw server response

Parameters

serverUrl

PrivMX Bridge server URL

apiKeyId

API KEY ID (see PrivMX Bridge API for more details)

apiKeySecret

API KEY SECRET (see PrivMX Bridge API for more details)

mode

allows you to set whether the request should be signed (mode = 1) or plain (mode = 0)

method

API method to call

paramsAsJson

API method's parameters in JSON format

actual external fun backendRequest(serverUrl: String, accessToken: String, method: String, paramsAsJson: String): String

Sends a request to PrivMX Bridge API using access token for authorization.

Return

JSON String representing raw server response

Parameters

serverUrl

PrivMX Bridge server URL

accessToken

token for authorization (see PrivMX Bridge API for more details)

method

API method to call

paramsAsJson

API method's parameters in JSON format

Throws

thrown when method encounters an exception.

thrown when method encounters an unknown exception.


actual external fun backendRequest(serverUrl: String, method: String, paramsAsJson: String): String

Sends request to PrivMX Bridge API.

Return

JSON String representing raw server response

Parameters

serverUrl

PrivMX Bridge server URL

method

API method to call

paramsAsJson

API method's parameters in JSON format


actual external fun backendRequest(serverUrl: String, apiKeyId: String, apiKeySecret: String, mode: Long, method: String, paramsAsJson: String): String

Sends a request to PrivMX Bridge API using pair of API KEY ID and API KEY SECRET for authorization.

Return

JSON String representing raw server response

Parameters

serverUrl

PrivMX Bridge server URL

apiKeyId

API KEY ID (see PrivMX Bridge API for more details)

apiKeySecret

API KEY SECRET (see PrivMX Bridge API for more details)

mode

allows you to set whether the request should be signed (mode = 1) or plain (mode = 0)

method

API method to call

paramsAsJson

API method's parameters in JSON format