Request Event
Fired when a client sends a request to the class.
Syntax
ANSI (Cross Platform) virtual int FireRequest(QBConnectorRequestEventParams *e);
typedef struct {
int ConnectionId;
int UserIndex;
const char *Request; int reserved; } QBConnectorRequestEventParams; Unicode (Windows) virtual INT FireRequest(QBConnectorRequestEventParams *e);
typedef struct {
INT ConnectionId;
INT UserIndex;
LPCWSTR Request; INT reserved; } QBConnectorRequestEventParams;
- (void)onRequest:(int)connectionId :(int)userIndex :(NSString*)request;
#define EID_QBCONNECTOR_REQUEST 7 virtual INT INQB_CALL FireRequest(INT &iConnectionId, INT &iUserIndex, LPSTR &lpszRequest);
Remarks
This event will fire with the raw XML data received from the client, which is to be processed by QuickBooks.
The ConnectionId indicates which client connection this Request event is firing for. The UserIndex is the index of the user in the AuthorizedUser array property. Request is the QBXML Request sent from the client.
A UserIndex of -1 means that no matching credentials were found in the AuthorizedUsers collection.