Generating a pkey with JavaScript

Hi,

We're using TurboActivate and FastSpring for subscriptions. Because of our product setup and options apparently we need to host a script [not in FastSpring fulfilment] to take the data and use it to pass to Lime for account creation and pkey etc. Are there any problems with writing this in JavaScript?

Thanks!

It depends. If it's client-side JS (namely, it's run on a script on a webpage) then you should absolutely not call the LimeLM web API from this.

If you're talking about server-side JS (like NodeJS stuff) then, sure, you can call the web API from that.

Keep in mind the API key is like a password. Don't ever put it in a place where it can be accessed from an end-user (malicious or not).

Does that make sense?

It does yes. I was just looking at NodeJS.

Thanks!