How to Publish a Post Through LinkedIn API and Python

How to Publish a Post Through LinkedIn API and Python

Learn how to publish a post through LinkedIn API and Python. My mission is to present a super-practical-step-by-step guide to interacting with LinkedIn API through Python. Get the Access Token you need to incorporate in your Python app. Develop the script and make it works!

The PointerPodcast.it Problem

I and other two friends of mine have a podcast and, each time we publish a new episode, we need to spread it around over socials (a.k.a. SPAM).

The repetitive action of copy&paste of the very same post over different socials, bother us a lot. So we decided to develop our web-app that let us deliver a single post over multiple platforms in one shot!

Image for post

We smoothly succeeded in the integration of Facebook, Instagram, Twitter, and our Telegram channel.

The Mission

When you program, You would like to develop your application in the fastest way possible. Once it works, then you start refining the code.

This haste, however, necessarily leads to the loss of some important details hidden in docs. And guess what? Your code won’t work and you will go crazy.

After a few days, you find out the “why” it wasn’t working. Your reaction type can be clustered in two distinct sets:

  • You feel stupid. “It was evident! How could I not notice it?”
  • You get mad with LinkedIn because it is NOT admissible not providing a “ready-set-go” docs!

So,my mission is to present a super-practical-step-by-step guide to interacting with LinkedIn API through Python. That’s it.

The Super Practical Guide to master LinkedIn API

  1. Create your LinkedIn App on the LinkedIn Developers platform.
  2. Get the Access Token you need to incorporate in your Python app.
  3. Develop the script and make it works!

1. Create your LinkedIn App

Go to the LinkedIn Developers platform.

Developers | Linkedin

Then click on “Create app”

Image for post

Provide the requested data

Image for post

Verify your LinkedIn page by click on “Verify”

Image for post

Click on “Generate URL” and follow the few steps requested by LinkedIn

Image for post

Once done, if everything is OK, you’ll get the “Verified” on the main page of your app

Image for post

Move to “Products” and enable both “Share on LinkedIn” and “Marketing Developer Platform” products

  • “Share on LinkedIn” authorizes you to manage your profile through LinkedIn API (i.e., in my case, the Alessandro Berti account)
  • “Marketing Developer Platform” authorizes you to manage your page through LinkedIn API (i.e., in my case, the PointerPodcast page)

Image for post

⚠️ By clicking on “_Marketing Developer Platform_”, you’ll receive on your primary email, the following Request Form.⚠️

Image for post

⚠️ You need to fill it, otherwise, LinkedIn isn’t going to authorize you to manage your page! ⚠️

By now, LinkedIn is going to review your request.

Be patient, and wait for the answer. LinkedIn will contact you by email.

Until we wait for the response, let’s go on with other stuff!

api linkedin python programming developer

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Hire Python Developers

Are you looking for experienced, reliable, and qualified Python developers? If yes, you have reached the right place. At **[HourlyDeveloper.io](https://hourlydeveloper.io/ "HourlyDeveloper.io")**, our full-stack Python development services...

Hire Python Developers India

Looking to build robust, scalable, and dynamic responsive websites and applications in Python? At **[HourlyDeveloper.io](https://hourlydeveloper.io/ "HourlyDeveloper.io")**, we constantly endeavor to give you exactly what you need. If you need to...

A Simple Guide to API Development Tools

APIs can be as simple as 1 endpoint for use by 100s of users or as complex as the AWS APIs with 1000s of endpoints and 100s of thousands of users. Building them can mean spending a couple of hours using a low-code platform or months of work using a multitude of tools. Hosting them can be as simple as using one platform that does everything we need or as complex as setting up and managing ingress control, security, caching, failover, metrics, scaling.

Python Tricks Every Developer Should Know

In this tutorial, you’re going to learn a variety of Python tricks that you can use to write your Python code in a more readable and efficient way like a pro.

Tracking a Developer’s Journey From Documentation Visit

Measuring website activity provides only half the story. See how to best track the developer's journey and what funnel stages makes sense for API-first products