Skip to content

nicolas2bert/angular-linkedin-connect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular-linkedin-connect

angular-linkedin-connect : a really simple angular module which handles the login with linkedin

Instalation

1) Download the package: download using the zip file
2) Add angular-the-linkedin.js in your app & Change the api_key
// Initialization of module
.run([function(TheLinkedin) {
    var a = document.createElement("script");
    a.type = "text/javascript", a.async = false, a.src = "http://platform.linkedin.com/in.js?async=true";
    a.onload = function(){
      IN.init({api_key: 'YOUR_API_KEY', authorize: true});
    };
    var b = document.getElementsByTagName("script")[0];
    b.parentNode.insertBefore(a, b)
}]);

3) Modify your application to include thelinkedin in your application dependencies
4) Specify a scope in your call

exemple : scopes:"r_fullprofile r_emailaddress"

var app = angular.module("app", ['thelinkedin']);
    app.config(['TheLinkedinProvider', function(TheLinkedinProvider) {
      TheLinkedinProvider.init({
          scopes:"SCOPE1 SCOPE2 SCOPE3"
       });
    }]);
    app.controller("HelloCtrl", function($scope,TheLinkedin) {
      $scope.login = function () {
        TheLinkedin.login();
      };
});
5) Enjoy your Linkedin API

About

A really simple angular module which handles the login with linkedin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages