Is there a way to dynamically pass an API key to the LinkedIn Library call?
I am retrieving the API key from a database field and storing it in a global JavaScript variable called 'myJavascriptVariable'. However, when I try to pass it to the API upon loading, it is not accepting it and throwing an exception.
What should be my next steps?
<script type="text/javascript" src="//platform.linkedin.com/in.js?async=false">
api_key: myJavascriptVariable
credentials_cookie: true
authorize: true
</script>
UPDATE: The error message states "You must specify a valid JavaScript API Domain as part of this key's configuration."