Does Pipedream Offer Public APIs for Commenting on LinkedIn?

This topic was automatically generated from Slack. You can find the original thread here.

Does Pipedream have public APIs that I can use in my application? I am specifically looking to get access to an API that lets me comment on LinkedIn

Pipedream does offer a platform that can be utilized to connect to various APIs, including LinkedIn, through the use of pre-built components or custom code. However, directly commenting on LinkedIn via a public API provided by Pipedream is not explicitly documented in the provided materials. To interact with LinkedIn, you would typically use the LinkedIn app integration on Pipedream, which allows you to authenticate and make API requests to LinkedIn’s API. Here’s a basic structure on how you might set up a component to interact with LinkedIn, although this example is for fetching profile information: ```
import { axios } from “@pipedream/platform” export default defineComponent({ props: { linkedin: { type: “app”, app: “linkedin”, }, }, async run({steps, $}) { return await axios($, { url: https://api.linkedin.com/v2/me, headers: { Authorization: Bearer ${this.linkedin.$auth.oauth_access_token}, }, }) }, })

How does pipedream do actions on LinkedIn? Does it use the official LinkedIn API?

You can build whatever workflow you need using any API, and call them via an HTTP endpoint.

And most popular APIs already have a prebuilt app with available triggers & actions.

Hi Pratheek, have you checked out the existing actions that are available for LinkedIn? Does this solve your problem? https://pipedream.com/apps/linkedin/actions/create-comment

Thank you for your response. Yes, I did check out that link.

I would be able to create a workflow on Pipedream to comment on LinkedIn. But, what I am looking for is a public API from Pipedream that I can use in my app to comment on LinkedIn.

@U05LWJMUX0A is this what you’re saying is possible with HTTP endpoint?

Can you tell me more about your use case when you say you’re looking for a public API so that you can access that action via your app? Are you trying to use Pipedream as the backend for your app?

Would you be making requests to LinkedIn with your own personal credentials or your end users’?

Yes, I’m validating if I can use Pipedream as the backend for my app

And yes, I would be making requests to LinkedIn with my end users’ credentials (by taking their permission)

And have you implemented the OAuth flow for LinkedIn already? Do you already have access to their access_token?

Not yet. We are in the process of getting approved for LinkedIn’s Marketing APIs. I’m just validating tech feasibility at this point

Got it. And to confirm, are you building the OAuth support directly into your app, or will you be using an auth vendor to facilitate?

The former - we’ll be building OAuth directly into our app

Got it. Have you checked out the External Auth feature? That will allow you to execute workflows and make authenticated requests on behalf of your end users, since you’ll have access to their access_tokens.

So you’d maybe need to trigger the workflow via an HTTP webhook, if that’s an option

Part of the reason I’m asking about the OAuth implementation is because we’ve been exploring a new set of features related to making it easier to integrate APIs into your app, so Pipedream would handle all of the auth process, and let you invoke workflows directly from your app via our SDK. Here’s some more information about that.

This is great !
Thank you so much for your valuable inputs.

I will explore workflow trigger via webhook and also Pipedream Connect. I will get back to you on this thread if I have any more questions.

Thanks again, this was super helpful

Great, happy to help