Table of Contents

Class BackendRequester

Namespace
PrivMX.Endpoint.Core
Assembly
PrivMX.Endpoint.dll
public class BackendRequester : IBackendRequester
Inheritance
BackendRequester
Implements
Inherited Members

Fields

ptr

public readonly IntPtr ptr

Field Value

IntPtr

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

serverUrl string

PrivMX Bridge server URL.

accessToken byte[]

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.

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

serverUrl string

PrivMX Bridge server URL.

apiKeyId string

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

apiKeySecret byte[]

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.

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

serverUrl string

PrivMX Bridge server URL.

method string

API method to call.

paramsAsJson string

API 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()