BackendRequesterAsyncExtensions
Async extension methods for IBackendRequester interface.
Static Methods
BackendRequestAsync
Sends a request to PrivMX Bridge API using access token for authorization.
Params
backendRequester
this IBackendRequester
Extended object.
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.
token
CancellationToken
Cancellation token.
Returns
ValueTask<string>
·
JSON string representing raw server response.
BackendRequestAsync
Sends request to PrivMX Bridge API.
Params
backendRequester
this IBackendRequester
Extended object.
serverUrl
string
PrivMX Bridge server URL.
method
string
API method to call.
paramsAsJson
string
API method's parameters in JSON format.
token
CancellationToken
Cancellation token.
Returns
ValueTask<string>
·
JSON string representing raw server response.
BackendRequestAsync
Sends a request to PrivMX Bridge API using pair of API KEY ID and API KEY SECRET for authorization.
Params
backendRequester
this IBackendRequester
Extended object.
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.
token
CancellationToken
Cancellation token.
Returns
ValueTask<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.