PrivMX DOCS
API Reference/PrivMX Endpoint/Core

BackendRequester

BackendRequester provides functions to call PrivMX Bridge API.

Static Methods

backendRequest

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

Params

serverUrl

const std::string &

PrivMX Bridge server URL

accessToken

const std::string &

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

method

const std::string &

API method to call

paramsAsJson

const std::string &

API method's parameters in JSON format

static std::string backendRequest(
const std::string &serverUrl
const std::string &accessToken
const std::string &method
const std::string &paramsAsJson
)

Returns

std::string · JSON string representing raw server response

backendRequest

Sends request to PrivMX Bridge API.

Params

serverUrl

const std::string &

PrivMX Bridge server URL

method

const std::string &

API method to call

paramsAsJson

const std::string &

API method's parameters in JSON format

static std::string backendRequest(
const std::string &serverUrl
const std::string &method
const std::string &paramsAsJson
)

Returns

std::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.

Params

serverUrl

const std::string &

PrivMX Bridge server URL

apiKeyId

const std::string &

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

apiKeySecret

const std::string &

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

mode

const int64_t

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

method

const std::string &

API method to call

paramsAsJson

const std::string &

API method's parameters in JSON format

static std::string backendRequest(
const std::string &serverUrl
const std::string &apiKeyId
const std::string &apiKeySecret
const int64_t mode
const std::string &method
const std::string &paramsAsJson
)

Returns

std::string · JSON string representing raw server response

We use cookies on our website. We use them to ensure the proper functioning of the site and, if you agree, for purposes we set, such as analytics or marketing.