@adaptive-ds/n8n-nodes-publer 1.1.8 → 1.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/credentials/PublerApi.credentials.d.ts +2 -2
- package/dist/credentials/PublerApi.credentials.js +16 -16
- package/dist/credentials/PublerApi.credentials.js.map +1 -1
- package/dist/nodes/PublerAnalytics/PublerAnalytics.node.d.ts +4 -0
- package/dist/nodes/PublerAnalytics/PublerAnalytics.node.js +75 -0
- package/dist/nodes/PublerAnalytics/PublerAnalytics.node.js.map +1 -0
- package/dist/nodes/PublerAnalytics/PublerAnalytics.spec.js +8 -0
- package/dist/nodes/PublerAnalytics/PublerAnalytics.spec.js.map +1 -0
- package/dist/nodes/PublerAnalytics/logo.svg +44 -0
- package/dist/nodes/PublerAnalytics/openapi.json +777 -0
- package/dist/nodes/{Publer/Publer.node.d.ts → PublerBasic/PublerBasic.node.d.ts} +1 -1
- package/dist/nodes/PublerBasic/PublerBasic.node.js +75 -0
- package/dist/nodes/PublerBasic/PublerBasic.node.js.map +1 -0
- package/dist/nodes/PublerBasic/PublerBasic.spec.d.ts +1 -0
- package/dist/nodes/PublerBasic/PublerBasic.spec.js +8 -0
- package/dist/nodes/PublerBasic/PublerBasic.spec.js.map +1 -0
- package/dist/nodes/PublerBasic/logo.svg +44 -0
- package/dist/nodes/PublerBasic/openapi.json +507 -0
- package/dist/nodes/PublerCompetitors/PublerCompetitors.node.d.ts +4 -0
- package/dist/nodes/PublerCompetitors/PublerCompetitors.node.js +75 -0
- package/dist/nodes/PublerCompetitors/PublerCompetitors.node.js.map +1 -0
- package/dist/nodes/PublerCompetitors/PublerCompetitors.spec.d.ts +1 -0
- package/dist/nodes/PublerCompetitors/PublerCompetitors.spec.js +8 -0
- package/dist/nodes/PublerCompetitors/PublerCompetitors.spec.js.map +1 -0
- package/dist/nodes/PublerCompetitors/logo.svg +44 -0
- package/dist/nodes/PublerCompetitors/openapi.json +264 -0
- package/dist/nodes/PublerLocations/PublerLocations.node.d.ts +4 -0
- package/dist/nodes/PublerLocations/PublerLocations.node.js +75 -0
- package/dist/nodes/PublerLocations/PublerLocations.node.js.map +1 -0
- package/dist/nodes/PublerLocations/PublerLocations.spec.d.ts +1 -0
- package/dist/nodes/PublerLocations/PublerLocations.spec.js +8 -0
- package/dist/nodes/PublerLocations/PublerLocations.spec.js.map +1 -0
- package/dist/nodes/PublerLocations/logo.svg +44 -0
- package/dist/nodes/PublerLocations/openapi.json +205 -0
- package/dist/nodes/PublerMedia/PublerMedia.node.d.ts +4 -0
- package/dist/nodes/{Publer/Publer.node.js → PublerMedia/PublerMedia.node.js} +8 -8
- package/dist/nodes/PublerMedia/PublerMedia.node.js.map +1 -0
- package/dist/nodes/PublerMedia/PublerMedia.spec.d.ts +1 -0
- package/dist/nodes/PublerMedia/PublerMedia.spec.js +8 -0
- package/dist/nodes/PublerMedia/PublerMedia.spec.js.map +1 -0
- package/dist/nodes/PublerMedia/logo.svg +44 -0
- package/dist/nodes/PublerMedia/openapi.json +346 -0
- package/dist/nodes/PublerPosts/PublerPosts.node.d.ts +4 -0
- package/dist/nodes/PublerPosts/PublerPosts.node.js +75 -0
- package/dist/nodes/PublerPosts/PublerPosts.node.js.map +1 -0
- package/dist/nodes/PublerPosts/PublerPosts.spec.d.ts +1 -0
- package/dist/nodes/PublerPosts/PublerPosts.spec.js +8 -0
- package/dist/nodes/PublerPosts/PublerPosts.spec.js.map +1 -0
- package/dist/nodes/PublerPosts/logo.svg +44 -0
- package/dist/nodes/PublerPosts/openapi.json +536 -0
- package/dist/nodes/PublerPostsPublish/PublerPostsPublish.node.d.ts +4 -0
- package/dist/nodes/PublerPostsPublish/PublerPostsPublish.node.js +75 -0
- package/dist/nodes/PublerPostsPublish/PublerPostsPublish.node.js.map +1 -0
- package/dist/nodes/PublerPostsPublish/PublerPostsPublish.spec.d.ts +1 -0
- package/dist/nodes/PublerPostsPublish/PublerPostsPublish.spec.js +8 -0
- package/dist/nodes/PublerPostsPublish/PublerPostsPublish.spec.js.map +1 -0
- package/dist/nodes/PublerPostsPublish/logo.svg +44 -0
- package/dist/nodes/PublerPostsPublish/openapi.json +229 -0
- package/dist/nodes/PublerPostsSchedule/PublerPostsSchedule.node.d.ts +4 -0
- package/dist/nodes/PublerPostsSchedule/PublerPostsSchedule.node.js +75 -0
- package/dist/nodes/PublerPostsSchedule/PublerPostsSchedule.node.js.map +1 -0
- package/dist/nodes/PublerPostsSchedule/PublerPostsSchedule.spec.d.ts +1 -0
- package/dist/nodes/PublerPostsSchedule/PublerPostsSchedule.spec.js +8 -0
- package/dist/nodes/PublerPostsSchedule/PublerPostsSchedule.spec.js.map +1 -0
- package/dist/nodes/PublerPostsSchedule/logo.svg +44 -0
- package/dist/nodes/PublerPostsSchedule/openapi.json +235 -0
- package/dist/package.json +27 -6
- package/package.json +27 -6
- package/dist/nodes/Publer/Publer.node.js.map +0 -1
- package/dist/nodes/Publer/Publer.node.json +0 -18
- package/dist/nodes/Publer/Publer.spec.js +0 -8
- package/dist/nodes/Publer/Publer.spec.js.map +0 -1
- package/dist/nodes/Publer/logo.svg +0 -1
- package/dist/nodes/Publer/openapi.json +0 -1527
- /package/dist/nodes/{Publer/Publer.spec.d.ts → PublerAnalytics/PublerAnalytics.spec.d.ts} +0 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.PublerPosts = void 0;
|
|
37
|
+
const n8n_openapi_node_1 = require("@devlikeapro/n8n-openapi-node");
|
|
38
|
+
const doc = __importStar(require("./openapi.json"));
|
|
39
|
+
const config = {};
|
|
40
|
+
const parser = new n8n_openapi_node_1.N8NPropertiesBuilder(doc, config);
|
|
41
|
+
const properties = parser.build();
|
|
42
|
+
class PublerPosts {
|
|
43
|
+
constructor() {
|
|
44
|
+
this.description = {
|
|
45
|
+
displayName: "Publer Posts",
|
|
46
|
+
name: "publerPosts",
|
|
47
|
+
icon: "file:logo.svg",
|
|
48
|
+
group: ["transform"],
|
|
49
|
+
version: 1,
|
|
50
|
+
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
51
|
+
description: "Interact with Publer Posts API - Manage posts (list, update, delete)",
|
|
52
|
+
defaults: {
|
|
53
|
+
name: "Publer Posts",
|
|
54
|
+
},
|
|
55
|
+
inputs: ["main"],
|
|
56
|
+
outputs: ["main"],
|
|
57
|
+
credentials: [
|
|
58
|
+
{
|
|
59
|
+
name: "publerApi",
|
|
60
|
+
required: true,
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
requestDefaults: {
|
|
64
|
+
headers: {
|
|
65
|
+
Accept: "application/json",
|
|
66
|
+
"Content-Type": "application/json",
|
|
67
|
+
},
|
|
68
|
+
baseURL: "https://app.publer.com",
|
|
69
|
+
},
|
|
70
|
+
properties: properties,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
exports.PublerPosts = PublerPosts;
|
|
75
|
+
//# sourceMappingURL=PublerPosts.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PublerPosts.node.js","sourceRoot":"","sources":["../../../nodes/PublerPosts/PublerPosts.node.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,oEAAgG;AAChG,oDAAqC;AAErC,MAAM,MAAM,GAA+B,EAAE,CAAA;AAC7C,MAAM,MAAM,GAAG,IAAI,uCAAoB,CAAC,GAAG,EAAE,MAAM,CAAC,CAAA;AACpD,MAAM,UAAU,GAAG,MAAM,CAAC,KAAK,EAAE,CAAA;AAEjC,MAAa,WAAW;IAAxB;QACE,gBAAW,GAAyB;YAClC,WAAW,EAAE,cAAc;YAC3B,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8DAA8D;YACxE,WAAW,EAAE,sEAAsE;YACnF,QAAQ,EAAE;gBACR,IAAI,EAAE,cAAc;aACrB;YACD,MAAM,EAAE,CAAC,MAAM,CAAC;YAChB,OAAO,EAAE,CAAC,MAAM,CAAC;YACjB,WAAW,EAAE;gBACX;oBACE,IAAI,EAAE,WAAW;oBACjB,QAAQ,EAAE,IAAI;iBACf;aACF;YACD,eAAe,EAAE;gBACf,OAAO,EAAE;oBACP,MAAM,EAAE,kBAAkB;oBAC1B,cAAc,EAAE,kBAAkB;iBACnC;gBACD,OAAO,EAAE,wBAAwB;aAClC;YACD,UAAU,EAAE,UAAU;SACvB,CAAA;IACH,CAAC;CAAA;AA7BD,kCA6BC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const PublerPosts_node_1 = require("./PublerPosts.node");
|
|
4
|
+
test("PublerPosts", () => {
|
|
5
|
+
const node = new PublerPosts_node_1.PublerPosts();
|
|
6
|
+
expect(node.description.properties).toBeDefined();
|
|
7
|
+
});
|
|
8
|
+
//# sourceMappingURL=PublerPosts.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PublerPosts.spec.js","sourceRoot":"","sources":["../../../nodes/PublerPosts/PublerPosts.spec.ts"],"names":[],"mappings":";;AAAA,yDAAgD;AAEhD,IAAI,CAAC,aAAa,EAAE,GAAG,EAAE;IACvB,MAAM,IAAI,GAAG,IAAI,8BAAW,EAAE,CAAA;IAC9B,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,WAAW,EAAE,CAAA;AACnD,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 115 38" height='38' width="115">
|
|
2
|
+
<path
|
|
3
|
+
fill="#113A54"
|
|
4
|
+
d="M43.6 31V13.4h7.7c1 0 1.8.1 2.6.4.6.3 1.1.7 1.5 1.2.4.6.7 1.2.8 1.9a14 14 0 0 1 0 4.7c-.1.6-.4 1.3-.8 1.8-.3.6-.9 1-1.5 1.2-.8.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19
|
+
<linearGradient
|
|
20
|
+
id="publer_logo_letter"
|
|
21
|
+
x1="-11.6"
|
|
22
|
+
x2="37"
|
|
23
|
+
y1="52.6"
|
|
24
|
+
y2="-1.9"
|
|
25
|
+
gradientUnits="userSpaceOnUse"
|
|
26
|
+
>
|
|
27
|
+
<stop offset=".5" stop-color="#00C2FF" />
|
|
28
|
+
<stop offset=".8" stop-color="#00E2CE" />
|
|
29
|
+
<stop offset="1" stop-color="#00FAA8" />
|
|
30
|
+
</linearGradient>
|
|
31
|
+
<linearGradient
|
|
32
|
+
id="publer_logo_text"
|
|
33
|
+
x1="-141.9"
|
|
34
|
+
x2="-26.2"
|
|
35
|
+
y1="-38.3"
|
|
36
|
+
y2="348.4"
|
|
37
|
+
gradientUnits="userSpaceOnUse"
|
|
38
|
+
>
|
|
39
|
+
<stop offset=".5" stop-color="#00C2FF" />
|
|
40
|
+
<stop offset=".8" stop-color="#00E2CE" />
|
|
41
|
+
<stop offset="1" stop-color="#00FAA8" />
|
|
42
|
+
</linearGradient>
|
|
43
|
+
</defs>
|
|
44
|
+
</svg>
|
|
@@ -0,0 +1,536 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.1.1",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "Publer Posts API",
|
|
5
|
+
"description": "Post management endpoints for Publer API including listing, updating, and deleting posts.",
|
|
6
|
+
"version": "1.0.0"
|
|
7
|
+
},
|
|
8
|
+
"servers": [
|
|
9
|
+
{
|
|
10
|
+
"url": "https://app.publer.com/api/v1"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"security": [
|
|
14
|
+
{
|
|
15
|
+
"BearerApiAuth": []
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"components": {
|
|
19
|
+
"securitySchemes": {
|
|
20
|
+
"BearerApiAuth": {
|
|
21
|
+
"type": "apiKey",
|
|
22
|
+
"name": "Authorization",
|
|
23
|
+
"in": "header",
|
|
24
|
+
"description": "API key authentication. Format: \"Bearer-API YOUR_API_KEY\""
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"schemas": {
|
|
28
|
+
"LinkMetadataRequest": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"description": "Request body for extracting link metadata",
|
|
31
|
+
"properties": {
|
|
32
|
+
"url": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "URL to extract metadata from"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"LinkMetadataResponse": {
|
|
39
|
+
"type": "object",
|
|
40
|
+
"description": "Response containing extracted link metadata",
|
|
41
|
+
"properties": {
|
|
42
|
+
"title": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"description": "Page title"
|
|
45
|
+
},
|
|
46
|
+
"description": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"description": "Page description"
|
|
49
|
+
},
|
|
50
|
+
"image": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"description": "Preview image URL"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"MediaItem": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"description": "Media item for a post",
|
|
59
|
+
"properties": {
|
|
60
|
+
"id": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"description": "Media ID"
|
|
63
|
+
},
|
|
64
|
+
"type": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"enum": ["image", "photo", "video", "gif"],
|
|
67
|
+
"description": "Media type"
|
|
68
|
+
},
|
|
69
|
+
"caption": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"description": "Media caption"
|
|
72
|
+
},
|
|
73
|
+
"alt_text": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"description": "Alternative text for accessibility"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"NetworkContent": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"description": "Network-specific post content",
|
|
82
|
+
"properties": {
|
|
83
|
+
"type": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"enum": [
|
|
86
|
+
"status",
|
|
87
|
+
"photo",
|
|
88
|
+
"video",
|
|
89
|
+
"link",
|
|
90
|
+
"carousel",
|
|
91
|
+
"story",
|
|
92
|
+
"reel",
|
|
93
|
+
"gif",
|
|
94
|
+
"poll",
|
|
95
|
+
"document",
|
|
96
|
+
"event",
|
|
97
|
+
"offer",
|
|
98
|
+
"short"
|
|
99
|
+
],
|
|
100
|
+
"description": "Post type for this network"
|
|
101
|
+
},
|
|
102
|
+
"text": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"description": "Post text content"
|
|
105
|
+
},
|
|
106
|
+
"media": {
|
|
107
|
+
"type": "array",
|
|
108
|
+
"description": "Media attachments",
|
|
109
|
+
"items": {
|
|
110
|
+
"$ref": "#/components/schemas/MediaItem"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"url": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"description": "Link URL"
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"PostAccount": {
|
|
120
|
+
"type": "object",
|
|
121
|
+
"description": "Account assignment for a post",
|
|
122
|
+
"required": ["id"],
|
|
123
|
+
"properties": {
|
|
124
|
+
"id": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"description": "Account ID"
|
|
127
|
+
},
|
|
128
|
+
"scheduled_at": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"format": "date-time",
|
|
131
|
+
"description": "Scheduled publish time"
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"PostUpdate": {
|
|
136
|
+
"type": "object",
|
|
137
|
+
"description": "Post update data",
|
|
138
|
+
"properties": {
|
|
139
|
+
"networks": {
|
|
140
|
+
"type": "object",
|
|
141
|
+
"description": "Network-specific post content",
|
|
142
|
+
"additionalProperties": {
|
|
143
|
+
"$ref": "#/components/schemas/NetworkContent"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"accounts": {
|
|
147
|
+
"type": "array",
|
|
148
|
+
"description": "Accounts to publish to",
|
|
149
|
+
"items": {
|
|
150
|
+
"$ref": "#/components/schemas/PostAccount"
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"PostUpdateRequest": {
|
|
156
|
+
"type": "object",
|
|
157
|
+
"description": "Request body for updating posts",
|
|
158
|
+
"properties": {
|
|
159
|
+
"bulk": {
|
|
160
|
+
"type": "object",
|
|
161
|
+
"description": "Bulk update configuration",
|
|
162
|
+
"properties": {
|
|
163
|
+
"state": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"enum": ["scheduled", "draft"],
|
|
166
|
+
"description": "Post state"
|
|
167
|
+
},
|
|
168
|
+
"posts": {
|
|
169
|
+
"type": "array",
|
|
170
|
+
"description": "Posts to update",
|
|
171
|
+
"items": {
|
|
172
|
+
"$ref": "#/components/schemas/PostUpdate"
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"PostUpdateResponse": {
|
|
180
|
+
"type": "object",
|
|
181
|
+
"description": "Response after updating posts",
|
|
182
|
+
"properties": {
|
|
183
|
+
"success": {
|
|
184
|
+
"type": "boolean",
|
|
185
|
+
"description": "Whether the update was successful"
|
|
186
|
+
},
|
|
187
|
+
"updated": {
|
|
188
|
+
"type": "integer",
|
|
189
|
+
"format": "int32",
|
|
190
|
+
"minimum": 0,
|
|
191
|
+
"maximum": 10000,
|
|
192
|
+
"description": "Number of posts updated"
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"PostListResponse": {
|
|
197
|
+
"type": "object",
|
|
198
|
+
"description": "Response containing list of posts",
|
|
199
|
+
"properties": {
|
|
200
|
+
"data": {
|
|
201
|
+
"type": "array",
|
|
202
|
+
"description": "List of posts",
|
|
203
|
+
"items": {
|
|
204
|
+
"type": "object",
|
|
205
|
+
"additionalProperties": true
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"required": ["data"]
|
|
210
|
+
},
|
|
211
|
+
"PostsDeleteResponse": {
|
|
212
|
+
"type": "object",
|
|
213
|
+
"description": "Response after deleting posts",
|
|
214
|
+
"properties": {
|
|
215
|
+
"success": {
|
|
216
|
+
"type": "boolean",
|
|
217
|
+
"description": "Whether the deletion was successful"
|
|
218
|
+
},
|
|
219
|
+
"deleted": {
|
|
220
|
+
"type": "integer",
|
|
221
|
+
"format": "int32",
|
|
222
|
+
"minimum": 0,
|
|
223
|
+
"maximum": 10000,
|
|
224
|
+
"description": "Number of posts deleted"
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
"tags": [
|
|
231
|
+
{
|
|
232
|
+
"name": "POSTS"
|
|
233
|
+
}
|
|
234
|
+
],
|
|
235
|
+
"paths": {
|
|
236
|
+
"/posts": {
|
|
237
|
+
"get": {
|
|
238
|
+
"tags": ["POSTS"],
|
|
239
|
+
"summary": "List Posts",
|
|
240
|
+
"description": "Retrieve a list of posts with optional filtering",
|
|
241
|
+
"operationId": "list_posts",
|
|
242
|
+
"parameters": [
|
|
243
|
+
{
|
|
244
|
+
"name": "Publer-Workspace-Id",
|
|
245
|
+
"in": "header",
|
|
246
|
+
"schema": {
|
|
247
|
+
"type": "string"
|
|
248
|
+
},
|
|
249
|
+
"example": "{{workspace_id}}",
|
|
250
|
+
"required": true,
|
|
251
|
+
"description": "Workspace ID to list posts from"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"name": "state",
|
|
255
|
+
"in": "query",
|
|
256
|
+
"schema": {
|
|
257
|
+
"type": "string",
|
|
258
|
+
"enum": [
|
|
259
|
+
"all",
|
|
260
|
+
"scheduled",
|
|
261
|
+
"scheduled_approved",
|
|
262
|
+
"scheduled_pending",
|
|
263
|
+
"scheduled_declined",
|
|
264
|
+
"scheduled_reauth",
|
|
265
|
+
"scheduled_locked",
|
|
266
|
+
"published",
|
|
267
|
+
"published_posted",
|
|
268
|
+
"published_deleted",
|
|
269
|
+
"published_hidden",
|
|
270
|
+
"draft",
|
|
271
|
+
"draft_dated",
|
|
272
|
+
"draft_undated",
|
|
273
|
+
"draft_private",
|
|
274
|
+
"draft_public",
|
|
275
|
+
"failed",
|
|
276
|
+
"recycling",
|
|
277
|
+
"recycling_active",
|
|
278
|
+
"recycling_paused",
|
|
279
|
+
"recycling_expired",
|
|
280
|
+
"recycling_failed",
|
|
281
|
+
"recycling_pending",
|
|
282
|
+
"recycling_declined",
|
|
283
|
+
"recycling_reauth",
|
|
284
|
+
"recycling_locked",
|
|
285
|
+
"recurring"
|
|
286
|
+
]
|
|
287
|
+
},
|
|
288
|
+
"example": "scheduled",
|
|
289
|
+
"description": "Filter posts by state"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"name": "from",
|
|
293
|
+
"in": "query",
|
|
294
|
+
"schema": {
|
|
295
|
+
"type": "string",
|
|
296
|
+
"format": "date"
|
|
297
|
+
},
|
|
298
|
+
"example": "2025-01-01",
|
|
299
|
+
"description": "Start date for filtering (YYYY-MM-DD)"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"name": "to",
|
|
303
|
+
"in": "query",
|
|
304
|
+
"schema": {
|
|
305
|
+
"type": "string",
|
|
306
|
+
"format": "date"
|
|
307
|
+
},
|
|
308
|
+
"example": "2025-12-31",
|
|
309
|
+
"description": "End date for filtering (YYYY-MM-DD)"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"name": "page",
|
|
313
|
+
"in": "query",
|
|
314
|
+
"schema": {
|
|
315
|
+
"type": "integer",
|
|
316
|
+
"format": "int32",
|
|
317
|
+
"minimum": 0,
|
|
318
|
+
"maximum": 10000
|
|
319
|
+
},
|
|
320
|
+
"example": 0,
|
|
321
|
+
"description": "Page number for pagination"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"name": "account_ids",
|
|
325
|
+
"in": "query",
|
|
326
|
+
"schema": {
|
|
327
|
+
"type": "array",
|
|
328
|
+
"items": {
|
|
329
|
+
"type": "string"
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
"style": "form",
|
|
333
|
+
"explode": true,
|
|
334
|
+
"example": ["63c675b54e299e9cf2b667ea"],
|
|
335
|
+
"description": "Filter by account IDs"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"name": "query",
|
|
339
|
+
"in": "query",
|
|
340
|
+
"schema": {
|
|
341
|
+
"type": "string"
|
|
342
|
+
},
|
|
343
|
+
"description": "Search query for posts"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"name": "post_type",
|
|
347
|
+
"in": "query",
|
|
348
|
+
"schema": {
|
|
349
|
+
"type": "string",
|
|
350
|
+
"enum": [
|
|
351
|
+
"status",
|
|
352
|
+
"link",
|
|
353
|
+
"photo",
|
|
354
|
+
"gif",
|
|
355
|
+
"video",
|
|
356
|
+
"reel",
|
|
357
|
+
"story",
|
|
358
|
+
"short",
|
|
359
|
+
"poll",
|
|
360
|
+
"document",
|
|
361
|
+
"carousel",
|
|
362
|
+
"article",
|
|
363
|
+
"event",
|
|
364
|
+
"offer"
|
|
365
|
+
]
|
|
366
|
+
},
|
|
367
|
+
"description": "Filter by post type"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"name": "member_id",
|
|
371
|
+
"in": "query",
|
|
372
|
+
"schema": {
|
|
373
|
+
"type": "string"
|
|
374
|
+
},
|
|
375
|
+
"description": "Filter by member ID who created the post"
|
|
376
|
+
}
|
|
377
|
+
],
|
|
378
|
+
"responses": {
|
|
379
|
+
"200": {
|
|
380
|
+
"description": "Successful response",
|
|
381
|
+
"content": {
|
|
382
|
+
"application/json": {
|
|
383
|
+
"schema": {
|
|
384
|
+
"$ref": "#/components/schemas/PostListResponse"
|
|
385
|
+
},
|
|
386
|
+
"example": {
|
|
387
|
+
"data": [
|
|
388
|
+
{
|
|
389
|
+
"id": "post123",
|
|
390
|
+
"state": "scheduled",
|
|
391
|
+
"content": "Post content"
|
|
392
|
+
}
|
|
393
|
+
]
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
"delete": {
|
|
401
|
+
"tags": ["POSTS"],
|
|
402
|
+
"summary": "Delete posts",
|
|
403
|
+
"description": "Delete multiple posts by their IDs",
|
|
404
|
+
"operationId": "delete_posts",
|
|
405
|
+
"parameters": [
|
|
406
|
+
{
|
|
407
|
+
"name": "Publer-Workspace-Id",
|
|
408
|
+
"in": "header",
|
|
409
|
+
"schema": {
|
|
410
|
+
"type": "string"
|
|
411
|
+
},
|
|
412
|
+
"example": "{{workspace_id}}",
|
|
413
|
+
"required": true,
|
|
414
|
+
"description": "Workspace ID to delete posts from"
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"name": "post_ids",
|
|
418
|
+
"in": "query",
|
|
419
|
+
"schema": {
|
|
420
|
+
"type": "array",
|
|
421
|
+
"items": {
|
|
422
|
+
"type": "string"
|
|
423
|
+
}
|
|
424
|
+
},
|
|
425
|
+
"example": ["684945796a88bf9baa9c182c"],
|
|
426
|
+
"description": "Array of post IDs to delete"
|
|
427
|
+
}
|
|
428
|
+
],
|
|
429
|
+
"responses": {
|
|
430
|
+
"200": {
|
|
431
|
+
"description": "Successful response",
|
|
432
|
+
"content": {
|
|
433
|
+
"application/json": {
|
|
434
|
+
"schema": {
|
|
435
|
+
"$ref": "#/components/schemas/PostsDeleteResponse"
|
|
436
|
+
},
|
|
437
|
+
"example": {
|
|
438
|
+
"success": true,
|
|
439
|
+
"deleted": 1
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
"/posts/links": {
|
|
448
|
+
"post": {
|
|
449
|
+
"tags": ["POSTS"],
|
|
450
|
+
"summary": "Extract link metadata",
|
|
451
|
+
"description": "Extract metadata from a URL for link previews",
|
|
452
|
+
"operationId": "extract_link_metadata",
|
|
453
|
+
"requestBody": {
|
|
454
|
+
"content": {
|
|
455
|
+
"application/json": {
|
|
456
|
+
"schema": {
|
|
457
|
+
"$ref": "#/components/schemas/LinkMetadataRequest"
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
"responses": {
|
|
463
|
+
"200": {
|
|
464
|
+
"description": "Successful response",
|
|
465
|
+
"content": {
|
|
466
|
+
"application/json": {
|
|
467
|
+
"schema": {
|
|
468
|
+
"$ref": "#/components/schemas/LinkMetadataResponse"
|
|
469
|
+
},
|
|
470
|
+
"example": {
|
|
471
|
+
"title": "Example Page",
|
|
472
|
+
"description": "This is an example page",
|
|
473
|
+
"image": "https://example.com/image.jpg"
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
"/posts/{post_id}": {
|
|
482
|
+
"put": {
|
|
483
|
+
"tags": ["POSTS"],
|
|
484
|
+
"summary": "Update post",
|
|
485
|
+
"description": "Update an existing post with new content and settings",
|
|
486
|
+
"operationId": "update_post",
|
|
487
|
+
"parameters": [
|
|
488
|
+
{
|
|
489
|
+
"name": "post_id",
|
|
490
|
+
"in": "path",
|
|
491
|
+
"schema": {
|
|
492
|
+
"type": "string"
|
|
493
|
+
},
|
|
494
|
+
"required": true,
|
|
495
|
+
"description": "ID of the post to update"
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"name": "Publer-Workspace-Id",
|
|
499
|
+
"in": "header",
|
|
500
|
+
"schema": {
|
|
501
|
+
"type": "string"
|
|
502
|
+
},
|
|
503
|
+
"example": "{{workspace_id}}",
|
|
504
|
+
"required": true,
|
|
505
|
+
"description": "Workspace ID containing the post"
|
|
506
|
+
}
|
|
507
|
+
],
|
|
508
|
+
"requestBody": {
|
|
509
|
+
"content": {
|
|
510
|
+
"application/json": {
|
|
511
|
+
"schema": {
|
|
512
|
+
"$ref": "#/components/schemas/PostUpdateRequest"
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
"responses": {
|
|
518
|
+
"200": {
|
|
519
|
+
"description": "Successful response",
|
|
520
|
+
"content": {
|
|
521
|
+
"application/json": {
|
|
522
|
+
"schema": {
|
|
523
|
+
"$ref": "#/components/schemas/PostUpdateResponse"
|
|
524
|
+
},
|
|
525
|
+
"example": {
|
|
526
|
+
"success": true,
|
|
527
|
+
"updated": 1
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
}
|