authentication - How can I create a LinkedIn post without human interaction - Stack Overflow

admin2025-04-17  2

I am trying to create a simple application that submits posts to my account on a schedule. It appears only OAuth authentication is supported now. I cannot generate a two-legged Oauth token.
I go to the generate token tool: I select my App But the only option I get is 3-legged token (no 2-way token)

While I was able to get authentication working with 3-legged token: .py

But that requires I use my browser to "Approve" the manually app each and every time it runs. My goal is to create something that does not require manual interaction.

Is there something special I need to do in order to generate a 2-leg token? Can you please point me to an example?

When I run the below example, I always receive "Status code: 401" when the accesss token is requested..and yes, I double checked to make sure the client id and secret are correct. .py

转载请注明原文地址:http://anycun.com/QandA/1744882090a88956.html