linkedIn.json•5.17 kB
{
"nodeType": "n8n-nodes-base.linkedIn",
"displayName": "LinkedIn",
"description": "Consume LinkedIn API",
"version": 1,
"properties": [
{
"name": "postAs",
"displayName": "Post As",
"type": "options",
"default": "person",
"description": "If to post on behalf of a user or an organization",
"options": [
{
"name": "Person",
"value": "person"
},
{
"name": "Organization",
"value": "organization"
}
]
},
{
"name": "person",
"displayName": "Person Name or ID",
"type": "options",
"default": "",
"description": "Person as which the post should be posted as. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
"required": true,
"displayOptions": {
"show": {
"operation": [
"create"
],
"postAs": [
"person"
],
"resource": [
"post"
]
}
}
},
{
"name": "organization",
"displayName": "Organization URN",
"type": "string",
"default": "",
"description": "URN of Organization as which the post should be posted as",
"placeholder": "1234567",
"displayOptions": {
"show": {
"operation": [
"create"
],
"postAs": [
"organization"
],
"resource": [
"post"
]
}
}
},
{
"name": "text",
"displayName": "Text",
"type": "string",
"default": "",
"description": "The primary content of the post",
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"post"
]
}
}
},
{
"name": "shareMediaCategory",
"displayName": "Media Category",
"type": "options",
"default": "NONE",
"description": "The post does not contain any media, and will only consist of text",
"options": [
{
"name": "None",
"value": "NONE",
"description": "The post does not contain any media, and will only consist of text"
},
{
"name": "Article",
"value": "ARTICLE",
"description": "The post contains an article URL"
},
{
"name": "Image",
"value": "IMAGE",
"description": "The post contains an image"
}
],
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"post"
]
}
}
},
{
"name": "binaryPropertyName",
"displayName": "Input Binary Field",
"type": "string",
"default": "data",
"required": true,
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"post"
],
"shareMediaCategory": [
"IMAGE"
]
}
}
},
{
"name": "additionalFields",
"displayName": "Additional Fields",
"type": "collection",
"default": {},
"description": "Provide a short description for your image or article",
"placeholder": "Add Field",
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"post"
]
}
}
},
{
"name": "operation",
"displayName": "Operation",
"type": "options",
"default": "create",
"description": "Create a new post",
"options": [
{
"name": "Create",
"value": "create",
"description": "Create a new post"
}
],
"displayOptions": {
"show": {
"resource": [
"post"
]
}
}
},
{
"name": "authentication",
"displayName": "Authentication",
"type": "options",
"default": "standard",
"options": [
{
"name": "Standard",
"value": "standard"
},
{
"name": "Community Management",
"value": "communityManagement"
}
]
},
{
"name": "resource",
"displayName": "Resource",
"type": "options",
"default": "post",
"options": [
{
"name": "Post",
"value": "post"
}
]
}
],
"credentialsConfig": [
{
"name": "linkedInOAuth2Api",
"required": true
},
{
"name": "authentication",
"required": false
},
{
"name": "resource",
"required": false
}
],
"io": {
"inputs": [
"Main"
],
"outputs": [
"Main"
],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [
"Main"
],
"produces": [
"Main"
]
}
}