-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(LinkedIn Node): Add support for Community Management API (#7451)
- Loading branch information
Showing
5 changed files
with
122 additions
and
9 deletions.
There are no files selected for viewing
54 changes: 54 additions & 0 deletions
54
packages/nodes-base/credentials/LinkedInCommunityManagementOAuth2Api.credentials.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import type { ICredentialType, INodeProperties } from 'n8n-workflow'; | ||
|
||
const scopes = ['w_member_social', 'w_organization_social', 'r_basicprofile']; | ||
|
||
export class LinkedInCommunityManagementOAuth2Api implements ICredentialType { | ||
name = 'linkedInCommunityManagementOAuth2Api'; | ||
|
||
extends = ['oAuth2Api']; | ||
|
||
displayName = 'LinkedIn Community Management OAuth2 API'; | ||
|
||
documentationUrl = 'linkedIn'; | ||
|
||
properties: INodeProperties[] = [ | ||
{ | ||
displayName: 'Grant Type', | ||
name: 'grantType', | ||
type: 'hidden', | ||
default: 'authorizationCode', | ||
}, | ||
{ | ||
displayName: 'Authorization URL', | ||
name: 'authUrl', | ||
type: 'hidden', | ||
default: 'https://www.linkedin.com/oauth/v2/authorization', | ||
required: true, | ||
}, | ||
{ | ||
displayName: 'Access Token URL', | ||
name: 'accessTokenUrl', | ||
type: 'hidden', | ||
default: 'https://www.linkedin.com/oauth/v2/accessToken', | ||
required: true, | ||
}, | ||
{ | ||
displayName: 'Scope', | ||
name: 'scope', | ||
type: 'hidden', | ||
default: scopes.join(' '), | ||
}, | ||
{ | ||
displayName: 'Auth URI Query Parameters', | ||
name: 'authQueryParameters', | ||
type: 'hidden', | ||
default: '', | ||
}, | ||
{ | ||
displayName: 'Authentication', | ||
name: 'authentication', | ||
type: 'hidden', | ||
default: 'body', | ||
}, | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters