Class BackendRequester
public class BackendRequester : IBackendRequester
- Inheritance
-
BackendRequester
- Implements
- Inherited Members
Fields
ptr
public readonly IntPtr ptr
Field Value
Methods
BackendRequest(string, byte[], string, string)
Sends a request to PrivMX Bridge API using access token for authorization.
public string BackendRequest(string serverUrl, byte[] accessToken, string method, string paramsAsJson)
Parameters
serverUrlstringPrivMX Bridge server URL.
accessTokenbyte[]Token for authorization (see PrivMX Bridge API for more details).
methodstringAPI method to call.
paramsAsJsonstringAPI method's parameters in JSON format.
Returns
- string
JSON string representing raw server response.
BackendRequest(string, string, byte[], long, string, string)
Sends a request to PrivMX Bridge API using pair of API KEY ID and API KEY SECRET for authorization.
public string BackendRequest(string serverUrl, string apiKeyId, byte[] apiKeySecret, long mode, string method, string paramsAsJson)
Parameters
serverUrlstringPrivMX Bridge server URL.
apiKeyIdstringAPI KEY ID (see PrivMX Bridge API for more details).
apiKeySecretbyte[]API 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.
Returns
- string
JSON string representing raw server response.
BackendRequest(string, string, string)
Sends request to PrivMX Bridge API.
public string BackendRequest(string serverUrl, string method, string paramsAsJson)
Parameters
serverUrlstringPrivMX Bridge server URL.
methodstringAPI method to call.
paramsAsJsonstringAPI method's parameters in JSON format.
Returns
- string
JSON string representing raw server response.
Create()
Creates an instance of the BackendRequester.
public static BackendRequester Create()
Returns
- BackendRequester
Created instance of the BackendRequester.
~BackendRequester()
protected ~BackendRequester()