title: Log in to Linkedin programmatically using javascript api
body: <p>I have a personal blog and I want to populate the "about me" section with my Linkedin data. </p>
  
  <p>What's the best way to programmatically login to Linkedin with my own credentials and serve up  the data?</p>
  
  <p>I don't want vistors having to login to linkedin to be able to see "MY" linkedin data.</p>
  
  <p>Any idea on the best approach for this?</p>
  
  <p>This is the start of my code, I'm just starting out and getting an understanding of the flow.</p>
  
  <pre><code>(function($, window) {
  "use strict";
  
  var Linkedin = {
      Config: {
          API_KEY: "API_KEY",
          SECRET_KEY: "SECRET_KEY",
          URL: "http://www.hanger-designs.co.uk:8888/wemustcreate/",
          END_POINT: "http://platform.linkedin.com/in.js"
      },
      initalise: function() {
          this.insertScript(this.returnedFunc, this.Config.END_POINT);
      },
      insertScript: function(callback, endPoint) {
          var code = "api_key:" + this.Config.API_KEY + "\n" + 
                     "onLoad:" + callback + "\n" +
                     "authorize: true"
          var scriptElement = document.createElement('script');
          scriptElement.text = code;
          scriptElement.type = 'text/javascript';
          scriptElement.src = this.Config.END_POINT;
  
          document.body.appendChild(scriptElement);
      },
      returnedFunc: function() {
          console.log('callback', arguments);
      }
  
  }
  
  Linkedin.initalise();
  
  })(jQuery, window);
  </code></pre>