Giter Club home page Giter Club logo

angular-linkedin-api's Introduction

Angular LinkedIn API

Angular interface to the LinkedIn API

LinkedIn

This library provides a pure Angular interface to the LinkedIn Profile, Group, Company, Jobs, Search, Share, Network and Invitation REST APIs.

###DEMO APPLICATION

Installation

You can install angular-linkedin-api via bower:

$ bower install angular-linkedin-api

Add linkedinService as dependency

var myApp = angular.module('myApp', ['linkedinServices']).config

Then inject it from your controller

myApp.controller('AppCtrl', function AppCtrl($scope, linkedinService)){}

All api methods return two parameter as callback. First one is error object and second one is response object of the api. If there is no error then the error parameter will be null.

Profile API

The Profile API returns a member's LinkedIn profile. You can use this call to return one of two versions of a user's profile which are public profile and standart profile. For more information, check out the documentation.

linkedinService.getProfile(function(err, profile){
    if(err){
        console.log('error occurred', error);
    }else{
        $rootScope.user = result;
        
    }
});

Here is the sample result

{
    "_key": "~",
    "firstName": "Burhan",
    "industry": "Computer Software",
    "lastName": "COKCA",
    "pictureUrl": "http://m.c.lnkd.licdn.com/mpr/mprx/0_rmBXqluXihhyeRSr-wQBq1OQ3LPpej2r"
}

Connections API

The Connections API returns a list of 1st degree connections for a user who has granted access to their account

linkedinService.getConnections(function(error, result){
    if(error){
        console.log('error occurred',error);
    }else{
        $scope.connections = result;
    }

});

Sample response

{
      "firstName": "Roberto",
      "id": "V9Zwje8VDW",
      "lastName": "Montagna",
      "pictureUrl": "http://m.c.lnkd.licdn.com/mpr/mprx/0_Tw3KHVRBxo1ndvWof7TfHMaNxu5qL9Ho_EzfHMpe87lXVt0EDSAyQJeQlXLIQAd68eimFOmiOYEH",
      "publicProfileUrl": "http://www.linkedin.com/in/robertomontagna"
},
{
      "firstName": "François de",
      "id": "Y3fJ4zOwvf",
      "lastName": "Chezelles - Oracle ADF, WebCenter, JSF",
      "pictureUrl": "http://m.c.lnkd.licdn.com/mpr/mprx/0_m8msvUEy5Tqwco4xukaWvJVYW_iWBo4xhXsLv4dunLcMemf0GQYnRZgCbm_nqDJP7_uksxRuT8vi",
      "publicProfileUrl": "http://www.linkedin.com/in/oracleadf"
},

Search API

Group API

Company API

Job API

Share API

Network API

Invitation API

Throttle Limits

LinkedIn API keys are throttled by default. You should take a look at the Throttle Limits Documentation to get more information about it.

angular-linkedin-api's People

Contributors

bcokca avatar

Watchers

James Cloos avatar Larry Nickerson avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.