Mailing license keys to customer mail address
I would like to put a form on my website that accepts a customer's mail address for input. When a customer enters his mail address, my web server should send a mail with all of his license keys. I've started to fetch the data by using QlmLicenseLib.dll, but that seems rather complicated because of the inconsistence of the API.
To get the user data, I'm calling GetCustomersInfo to receive a data set of customers with the specified mail address. Then I'm using the CustomerId column of the result for getting the serial key with the GetDataSet method. This method does not return a DataSet object, it returns an XML representation of the DataSet instead. Now I have the keys - so next step would be calling GetDataSetEx for looking up the Product.
So... Is this really the right way to just compile a simple list of all products and serials a customer has bought with the specified mail address or am I missing something?
Thanks for your help!
-
Official comment
You can download this sample from:
http://soraco.co/products/qlm/samples/QlmListCustomerLicenses.zip
Comment actions -
I've created a sample for you that does what you need. Unfortunately, I cannot add an attachment to this question.
Please provide me with your email or send an email to support@soraco.co.
Regards
John
Please sign in to leave a comment.
Comments
9 comments