Note that to call this function, you must:
- Set the AdminEncryptionKey property
To retrieve information about a single customer, it is recommended to use GetCustomerInfo since it does not require setting the AdminEncryptionKey.
C#: IQlmCustomerInfo [] GetCustomersInfoEx (string webServiceUrl, string fieldName, string fieldOperator, string fieldValue)
Parameters
webServiceUrl - URL to the QLM License Server.
field - field from the Customers table. Typical fields are: Email, FullName, CustomerID
fieldOperator - a valid SQL operator such as: =, like, <>
fieldValue - value of the field to match
C# Example
- IQlmCustomerInfo[] customers = license.GetCustomersInfo (webServiceUrl, "email", "=", "'customer@mail.com'");
C++ Example
// Get all the customer records
SAFEARRAY * sa = qlmLicense->GetCustomersInfoEx (webServiceUrl _bstr_t(""),_bstr_t(""),_bstr_t(""));IQlmCustomerInfo *ci;
LONG numRecords = 0;
SafeArrayGetUBound (sa, 1, &numRecords);
for (LONG i=0; i < numRecords; i++)
{
SafeArrayGetElement (sa, &i, &ci);
}
// Destroy the safe array when done
SafeArrayDestroy (sa);
Comments
0 comments
Article is closed for comments.