Skip to content

Instantly share code, notes, and snippets.

@honzajavorek
Created March 17, 2023 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save honzajavorek/9f9db686888715ee09ce877cccb70feb to your computer and use it in GitHub Desktop.
Save honzajavorek/9f9db686888715ee09ce877cccb70feb to your computer and use it in GitHub Desktop.

Hello, I'm trying to build on top of your API. I created two apps at https://www.linkedin.com/developers/apps, one I want to use for basic tasks (Client ID 864swzup2z17ah), another I want to later use to experiment with LinkedIn live events (Client ID 86k5wy979pjf9d).

My aim with the API is to build audience on LinkedIn by sharing content on my own LinkedIn profile, maybe also my company page. I'm thinking whether it would be possible to take articles from my blog or other places and put the text of them to LinkedIn as first-class articles, so people could follow me on LinkedIn and get the articles as a newsletter, etc. Bascially I aim to have heavy integration so that my content appears on LinkedIn as first-class, not linked from somewhere else.

As a software engineer I want to write tools which can automate some of these tasks. E.g. I publish article on my blog, then a program runs, takes the text, processes it so that it fits LinkedIn best, then sends it over the API and publishes it as a LinkedIn article. But for this I need "2-legged OAuth" access as described here: https://learn.microsoft.com/en-us/linkedin/shared/authentication/client-credentials-flow?context=linkedin%2Fcontext Without that I cannot write programs which do not need my interaction. Standard OAuth requires to run the program, then I must go through the human-clicking flow to authorize the API, and only then the program can do something for me. That is completely unusable for me, I am a single-person business/publisher/influencer building a platform and community, I need to automate by tools that work unattended.

If I follow the example from that page, I get the following JSON though: {'error': 'access_denied', 'error_description': 'This application is not allowed to create application tokens'}

If I look it up in the list of the errors, it says I need to "Reach out to the LinkedIn Relationship Manager or Business Development team to get the necessary access." But I have no idea how to do that or who is that. So here I am, writing you a support request. I really want to build something cool with your API and integrate heavily with your network to get the most out of it and to provide the best content for my followers, I want to experiment with and learn about your API, but I got stuck at this. How do I get the app approved for "2-legged OAuth" token?

Just a small feedback, it wasn't really easy to get as far as having the two approved apps, for a mere mortal the API access is so guarded and complicated, that I believe not many of those who dreamed about similar integrations as I dream about got as far as I got :)

I understand LinkedIn guards its data, because it's very valuable. What I miss is a simple access for a mere mortal like me who doesn't want any of your precious data. I don't want to read data about anyone else. I want my own data, or data about my company. I don't care about others :)) I don't want other users to log in through my app, I don't want them to provide any of their data to me, the apps I have are supposed to super-charge my own LinkedIn usage, not anyone else's. That's why the access over standard OAuth doesn't really make any sense for my use case. I'm the author of my LinkedIn profile and my posts. I should be able to request your API using "2-legged OAuth" and list my own profile posts, get my number of followers, post to my profile, publish my articles, etc. And if I requested data of any other people, the API should say "no no, you don't have authorization for that!" That would be perfectly fine for me.

So, hereby I deeply bow and ask you: Would you please authorize my apps to be able to use "2-legged OAuth" with the API?

Thanks,
Honza Javorek

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment