The web API pack has a number of different examples showing how to use the web API to (among other things) modify custom license fields on product keys.
So, the way you'd do it is like this (I'm assuming you're using PHP on your webserver, but you can use any language):
- Create a simple php script that includes the LimeLM.php file. Write the lines of code that will read from POST the product key and the data you want to save.
- The script will then call the limelm.pkey.setDetails function (or SetPKeyDetails() in LimeLM.php) to save the data to a license field.
- Your app will POST data to this script sitting on your server.
Does our library have send custom data function?
You have to write the code to collect whatever data you need, and use the web API functions to save it in the license field.
And can I make the app send data to server more frequently? (For example: Send after app closed).
You can send it as often as you'd like.