This project has been archived by its maintainers, and is no longer receiving any updates.
django-linkedin-posts
Set up
- Get your Linkedin Access Token https://www.linkedin.com/developers/tools/oauth/token-generator
- Install from PyPI
python -m pip install django-linkedin-posts
- Add the package to your settings INSTALLED_APPS
INSTALLED_APPS = [
...
"django_linkedin_posts",
...
]
- Add the following setting variables
## thid-party apps
# django-linkedin-posts (our app)
import os
from dotenv import load_dotenv # python-dotenv
load_dotenv()
LINKEDIN_AUTHOR_TPYE = "organization" # "organization" or "person"
LINKEDIN_AUTHOR_ID = os.environ.get("LINKEDIN_AUTHOR_ID")
LINKEDIN_ACCESS_TOKEN = os.environ.get("LINKEDIN_ACCESS_TOKEN")
## The following keys are not needed at the moment
## But they are planned to be used.
## For example for updating the Access Token using the Refresh Token
# LINKEDIN_CLIENT_ID = os.environ.get("LINKEDIN_CLIENT_ID")
# LINKEDIN_CLIENT_SECRET = os.environ.get("LINKEDIN_CLIENT_SECRET")
# LINKEDIN_REFRESH_TOKEN = os.environ.get("LINKEDIN_REFRESH_TOKEN")
Usage
Create a simple Post
from django_linkedin_posts.models import Post
# create a post instance in the db
post = Post.objects.create(
comment="Hi, this is me publishing a post using django-linkedin-posts"
)
# share it in Linkedin
post.share()
Create a poll with options
from django_linkedin_posts.models import create_poll_with_options
# create a poll with its options.
p = create_poll_with_options("hello", "What's up?", ["good", "bad"])
# share it
p.share()
Metadata
Release files for django-linkedin-posts 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-linkedin-posts-0.0.4.tar.gz | 19.9 kB | Without provenance | Details for django-linkedin-posts-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_linkedin_posts-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for django_linkedin_posts-0.0.4-py3-none-any.whl |
Total release size: 42.2 kB
Release files / django-linkedin-posts-0.0.4.tar.gz
| Download URL | django-linkedin-posts-0.0.4.tar.gz |
|---|---|
| Size | 19.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dbd18e66d78932b2b723c91e7b7d25ec787bcd62a1813647ea709bbbcace25ae
|
|
BLAKE2b-256 checksum How to use checksums |
ce1c4d7ac4fdac837dfa65623d55fb05b7c06c01f9e4ff69dfb4064de434d76a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/42.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12
|
Release files / django_linkedin_posts-0.0.4-py3-none-any.whl
| Download URL | django_linkedin_posts-0.0.4-py3-none-any.whl |
|---|---|
| Size | 22.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
10956205b5b95d66bcc3d8f76276939e59fd0b21d145055919cdb0948416fa15
|
|
BLAKE2b-256 checksum How to use checksums |
379996015c92031e017619e806aab782ea4dcd0ffa4bc6fd1fb2d8b23414231c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/42.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12
|
Security for django-linkedin-posts 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.