Skip to content
This repository was archived by the owner on Mar 27, 2018. It is now read-only.

Architizer/angular-linkedin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular-linkedin

AngularJS module that wraps the LinkedIn SDK

Installation

Install the module with bower:

$ bower install angular-linkedin

Usage

Configure the service using LinkedInProvider. The options are identical to those used to configure the LinkedIn SDK, with the exception that onLoad accepts a function or array of functions.

The LinkedIn service is just a wrapper for the SDK. See the documentation for more details.

var app = angular.module('MyApp', ['linkedin']);

app.config(['LinkedInProvider', function(LinkedInProvider) {

  LinkedInProvider.init({
    apiKey: 'YOUR_API_KEY',
    onLoad: function (sdk) {},
    authorize: true,
    lang: 'en_US'
  });
}]);

app.controller('MyController', ['LinkedIn', function (LinkedIn) {

    LinkedIn.User.authorize(function (response) {

      // Logic
    });
}]);

About

AngularJS module that wraps the LinkedIn SDK

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors