Never call the web API from your app. Using the web API requires the web API key, which is like a password to your LimeLM account. So if you integrate the web API in your app you're giving your password to all users of your app.
What you should do is have a script on your website that does whatever you want it to do, and from your app call that script and pass along something from the user (like their product key) and whatever else you want to set.
Then the script on your website does the work.