Open
#include "opApi.h"
#include <stddef.h>
OPAPIHandle api;
wchar_t *brokerId = NULL;
wchar_t *errorMsg = NULL;
SendRequest
wchar_t *serviceId = L"getBrokerIdentity";
wchar_t *requestJson = L"{}";
wchar_t *guid;
wchar_t *errorMsg;
ReceiveReply
wchar_t *replyJson;
wchar_t *errorMsg;
DeleteRequest
SendRecvDelete
Close
Status Callback
#include <stdio.h>
void _statusCallback(OPAPIHandle sender, wchar_t *id, wchar_t *status)
{
wprintf(L"The status of id {%ws} is {w%s}.", id, status);
}
void main()
{
OPAPIHandle api;
wchar_t *brokerId;
wchar_t *errorMsg;
}