Giter VIP home page Giter VIP logo

pawl's Introduction

PAWL: Python API Wrapper for LinkedIn


PyPI - Version PyPI - Python Version PyPI - Monthly Downloads

PAWL (an acronym for Python API Wrapper - LinkedIn) allows for simple access to LinkedIn's API with only a single dependency.

Installation

PAWL is supported on Python 3.9+. The recommended way to install PAWL is with pip.

pip install pawl

Examples

Examples are provided in docs/examples.

Quickstart

# Demo in python/ipython shell
# Don't forget to install pawl first

>>> import pawl

>>> linkedin = pawl.Linkedin(
    client_id="CLIENT_ID_VALUE",
    client_secret="CLIENT_SECRET_VALUE",
    redirect_uri="http://localhost:8000",
)

>>> linkedin
<pawl.linkedin.Linkedin at 0x10ea46af0>

GET PROFILE:

# Demo in python/ipython shell

>>> linkedin
<pawl.linkedin.Linkedin at 0x10ea46af0>

>>> response = linkedin.current_user.basic_profile()

>>> response
{
    'localizedLastName': 'LAST_NAME',
    'profilePicture': {
        'displayImage': 'PHOTO_ID'
    },
    'firstName': {
        'localized': {
            'LANG_CODE_COUNTRY_CODE': 'FIRST_NAME'
        },
        'preferredLocale': {
            'country': 'COUNTRY_CODE_VALUE',
            'language': 'LANGUAGE_CODE'
        }
    },
    'lastName': {
        'localized': {
            'LANG_CODE_COUNTRY_CODE':
            'LAST_NAME'
        },
        'preferredLocale': {
            'country': 'COUNTRY_CODE',
            'language': 'LANGUAGE_CODE'
        }
    },
    'id': 'USER_ID',
    'localizedFirstName': 'LOCALIZED_FIRST_NAME'
}

Sources

The work that went into PAWL is not entirely my own. I learned a lot from open-sourced code written by many incredible developers.

License

PAWL's source is provided under the MIT License.

  • Copyright © 2021 Kyle J. Burda

pawl's People

Contributors

kylejb avatar

Stargazers

 avatar  avatar

Watchers

 avatar

pawl's Issues

Like a post

What

  • Integrate LinkedIn's API to access the resource at https://api.linkedin.com/v2/reactions?actor= in order to like a specific post.

How

  • Pass in hardcoded value for access_token and urn:li:person:{{USER_ID}} to test functionality and then work backwards from there.

Why

  • MVP feature.

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.