django-linkedin-middleware-0.1.2
توضیحات
Django Middleware for LinkedIn API
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django-linkedin-middleware-0.1.2 |
| نام | django-linkedin-middleware |
| نسخه کتابخانه | 0.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Larry Mota--Lavigne |
| ایمیل نویسنده | larry.motalavigne@gmail.com |
| آدرس صفحه اصلی | https://github.com/Squalex/LinkedinMiddleware |
| آدرس اینترنتی | https://pypi.org/project/django-linkedin-middleware/ |
| مجوز | Apache License |
# Django LinkedIn Middleware
[](https://pypi.org/project/django-linkedin-middleware/)
[](https://travis-ci.com/Squalex/LinkedinMiddleware)
Connect to the LinkedIn API.
## Installation
```bash
$ pip install django-linkedin-middleware
```
Just add `django-linkedin-middleware.middleware.LinkedinMiddleware` to your `MIDDLEWARE`.
## Usage
In the request session will be found 3 differents label :
* `linkedin_firstName` for the user first name
* `linkedin_lastName` for the user last name
* `linkedin_headline` for the user headline
In your HTML, you can directly add these label to display the data.
## Settings
### Linkedin Configuration
You need to create an application on the linkedin developer pages to
[https://www.linkedin.com/developer/apps](https://www.linkedin.com/developer/apps) to receive your credentials
`LINKEDIN_APPLICATION_KEY` : the Client ID
`LINKEDIN_APPLICATION_SECRET` : the Client Secret
`LINKEDIN_APPLICATION_RETURN_CALLBACK` : the callback url (you should add the same url in the linkedin developer page)
`LINKEDIN_APPLICATION_PROFILE` : a table of different application permissions. Here's a list of the permissions :
`['r_basicprofile', 'r_emailaddress', 'rw_company_admin', 'w_share']`. You could also add the permission
### Application Configuration
`PAGES_WITH_LINKEDIN_AUTH_REQUIRED` : the list of all pages on which you should force an authentication. By default, it will be all the pages (example : `['*']`)
`PAGES_WITHOUT_LINKEDIN_AUTH_REQUIRED` : the list of all pages on which the authentication is disable.
## Thanks
I only made a middleware for simply connect to linkedin and display information in the session.
I based my work on the [python-linkedin](https://github.com/ozgur/python-linkedin) project.
نیازمندی
| مقدار | نام |
|---|---|
| - | django |
| - | |
| - | mock |
| - | python3-linkedin |
نحوه نصب
نصب پکیج whl django-linkedin-middleware-0.1.2:
pip install django-linkedin-middleware-0.1.2.whl
نصب پکیج tar.gz django-linkedin-middleware-0.1.2:
pip install django-linkedin-middleware-0.1.2.tar.gz