title: what is an api_key in linkedin javascript api developer
body: <p>when i am trying to write code for login with linkedin i am getting error like the below.</p>
  
  <p><strong><em>Uncaught Error:</strong> You must specify a valid JavaScript API Domain as part of this key's configuration.</em></p>
  
  <p>Below is my JavaScript code</p>
  
  <pre><code>&lt;script type="text/javascript" src="//platform.linkedin.com/in.js"&gt;
      api_key: ######//keep it secret
      authorize: true
      onLoad: onLinkedInLoad
  &lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
  
      // Setup an event listener to make an API call once auth is complete
      function onLinkedInLoad() {
          IN.Event.on(IN, "auth", getProfileData);
      }
  
      // Handle the successful return from the API call
      function onSuccess(data) {
          // Pre-populate your form fields here once you know the call 
          // came back successfully
      }
  
      // Handle an error response from the API call
      function onError(error) {
          console.log(error);
      }
  
      // Use the API call wrapper to request the member's basic profile data
      function getProfileData() {
          IN.API.Raw("/people/~:(firstName,lastName,emailAddress)").result(onSuccess).error(onError);
      }
  
  &lt;/script&gt;
  </code></pre>