feat(LinkedIn Node): Add support for Community Management API (#7451)

This commit is contained in:
Jon
2024-01-24 09:28:42 +00:00
committed by GitHub
parent 7386f79362
commit 7660d7e735
5 changed files with 122 additions and 9 deletions

View File

@@ -42,7 +42,7 @@ export class LinkedInOAuth2Api implements ICredentialType {
name: 'scope',
type: 'hidden',
default:
'=w_member_social{{$self["organizationSupport"] === true ? ",w_organization_social":",r_liteprofile,r_emailaddress"}}',
'=w_member_social{{$self["organizationSupport"] === true ? ",w_organization_social": $self["legacy"] === true ? ",r_liteprofile,r_emailaddress" : ",profile,email,openid"}}',
description:
'Standard scopes for posting on behalf of a user or organization. See <a href="https://docs.microsoft.com/en-us/linkedin/marketing/getting-started#available-permissions"> this resource </a>.',
},
@@ -58,5 +58,12 @@ export class LinkedInOAuth2Api implements ICredentialType {
type: 'hidden',
default: 'body',
},
{
displayName: 'Legacy',
name: 'legacy',
type: 'boolean',
default: true,
description: 'Whether to use the legacy API',
},
];
}