late-sdk 0.0.721 → 0.0.722
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.
- checksums.yaml +4 -4
- data/docs/EditPost200Response.md +1 -1
- data/docs/EditPostRequest.md +3 -1
- data/docs/PostsApi.md +1 -1
- data/lib/zernio-sdk/api/posts_api.rb +2 -2
- data/lib/zernio-sdk/models/edit_post200_response.rb +1 -1
- data/lib/zernio-sdk/models/edit_post_request.rb +16 -6
- data/lib/zernio-sdk/version.rb +1 -1
- data/openapi.yaml +60 -6
- data/spec/api/posts_api_spec.rb +1 -1
- data/spec/models/edit_post_request_spec.rb +7 -1
- data/zernio-sdk-0.0.722.gem +0 -0
- metadata +2 -2
- data/zernio-sdk-0.0.721.gem +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 43b7ee1ff90a279e1c8104b2defb0084885ba7c175ebf30c1ef3dfbbb14abdb0
|
|
4
|
+
data.tar.gz: ca1c06cb0f1baa326fdc71209d78fca14498cb94a4b2067ea1d63daee85d4015
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6fc6e45dafaba431e82243c105e30a2f7ad38537a530e1f1e53065bd0e7e880a9cf63427da7cc10656838e0304005b8282a32422d9fe521c23d960fbe925fc50
|
|
7
|
+
data.tar.gz: 1ee349951a04c57495e6dc34becfe1f3cf4b76925c7c647825481cd87138e6f4eba0d066eec8860d4e82f625217aff36eb9e7ba81eec7cfe4dc4e4f6e9cede70
|
data/docs/EditPost200Response.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **success** | **Boolean** | | [optional] |
|
|
8
|
-
| **id** | **String** | The platform post ID after the edit. X assigns a new ID;
|
|
8
|
+
| **id** | **String** | The platform post ID after the edit. X assigns a new ID; every other platform returns the original ID unchanged. | [optional] |
|
|
9
9
|
| **url** | **String** | URL of the edited post | [optional] |
|
|
10
10
|
| **message** | **String** | | [optional] |
|
|
11
11
|
|
data/docs/EditPostRequest.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **platform** | **String** | The platform to edit the post on. | |
|
|
8
8
|
| **content** | **String** | The new post text content | |
|
|
9
|
+
| **account_id** | **String** | Which account's copy of the post to edit when the post was published to several accounts on the same platform; defaults to the first. | [optional] |
|
|
9
10
|
|
|
10
11
|
## Example
|
|
11
12
|
|
|
@@ -14,7 +15,8 @@ require 'zernio-sdk'
|
|
|
14
15
|
|
|
15
16
|
instance = Zernio::EditPostRequest.new(
|
|
16
17
|
platform: null,
|
|
17
|
-
content: null
|
|
18
|
+
content: null,
|
|
19
|
+
account_id: null
|
|
18
20
|
)
|
|
19
21
|
```
|
|
20
22
|
|
data/docs/PostsApi.md
CHANGED
|
@@ -237,7 +237,7 @@ end
|
|
|
237
237
|
|
|
238
238
|
Edit published post
|
|
239
239
|
|
|
240
|
-
Edit the text of an already-published post. Supported on X (Twitter), Discord, Facebook, and
|
|
240
|
+
Edit the text of an already-published post. Supported on X (Twitter), Discord, Facebook, Reddit, LinkedIn, Telegram, Pinterest, Google Business Profile, YouTube, and Slack. When a post was published to several accounts on the same platform, pass `accountId` to pick which account's copy to edit (the first entry is edited otherwise). Each platform enforces its own rules: **X (Twitter)** - Connected X account must have an active X Premium subscription - Must be within 1 hour of original publish time - Maximum 5 edits per tweet (enforced by X) - Threads cannot be edited, only single tweets - X assigns a NEW post ID on edit, returned as `id` **Discord** - No time limit and no premium requirement - The message ID is unchanged after the edit **Facebook** - Graph only permits editing a post that the same app created, so this works on posts published through Zernio and is rejected for posts created in Meta Business Suite / Composer or by another tool - Media cannot be swapped, only the message text - Reactions, comments, and shares are preserved. The post ID is unchanged **Reddit** - Self-posts only. A link post has no editable body and is rejected before the write - Body only. Reddit exposes no API to edit a post title, ever - The post ID is unchanged **LinkedIn** - Text only, no time limit. Media, polls, articles, and reshare targets cannot be changed - Works for member and organization posts published through this API. The post keeps its ID and LinkedIn shows an \"edited\" marker - Text is limited to 3,000 characters; mentions and hashtags are preserved **Telegram** - No time limit; messages published through Zernio are editable indefinitely - Text posts: edits the message text (up to 4096 characters) - Media posts: edits the caption only (up to 1024 characters). The media itself cannot be swapped - For albums, the caption shown on the album (its first message) is edited - The message ID is unchanged **Pinterest** - Description only, maximum 800 characters. Media, link, and board cannot be changed, and a pin title derived from the old content's first line at publish stays as-is - Pinterest's pin-update endpoint is currently in closed beta; until the app is allowlisted by Pinterest, edits are rejected with a \"beta feature not yet enabled\" error - The pin ID is unchanged **Google Business Profile** - Post body (summary) text only. Call-to-action, event/offer fields, and media are untouched - No time limit and no edit limit. The post ID is unchanged - The post must still exist on Google: a post deleted from the Business Profile dashboard, or an event/offer post past its end date, returns a 404 **YouTube** - `content` replaces the video description only. The title is unchanged, even if it was originally derived from the content's first line at publish time - Title, tags, thumbnail, and privacy edits belong to `POST /v1/posts/{postId}/update-metadata` - No time window and no edit cap. The video ID is unchanged **Slack** - Text only, up to 4,000 characters. Media cannot be swapped, and media posts whose share message reference never resolved cannot be edited - No time limit unless workspace admins restrict message editing - The message ID is unchanged Media edits are not supported on any platform. The post record in Zernio is updated with the new content and an edit-history entry.
|
|
241
241
|
|
|
242
242
|
### Examples
|
|
243
243
|
|
|
@@ -222,7 +222,7 @@ module Zernio
|
|
|
222
222
|
end
|
|
223
223
|
|
|
224
224
|
# Edit published post
|
|
225
|
-
# Edit the text of an already-published post. Supported on X (Twitter), Discord, Facebook, and
|
|
225
|
+
# Edit the text of an already-published post. Supported on X (Twitter), Discord, Facebook, Reddit, LinkedIn, Telegram, Pinterest, Google Business Profile, YouTube, and Slack. When a post was published to several accounts on the same platform, pass `accountId` to pick which account's copy to edit (the first entry is edited otherwise). Each platform enforces its own rules: **X (Twitter)** - Connected X account must have an active X Premium subscription - Must be within 1 hour of original publish time - Maximum 5 edits per tweet (enforced by X) - Threads cannot be edited, only single tweets - X assigns a NEW post ID on edit, returned as `id` **Discord** - No time limit and no premium requirement - The message ID is unchanged after the edit **Facebook** - Graph only permits editing a post that the same app created, so this works on posts published through Zernio and is rejected for posts created in Meta Business Suite / Composer or by another tool - Media cannot be swapped, only the message text - Reactions, comments, and shares are preserved. The post ID is unchanged **Reddit** - Self-posts only. A link post has no editable body and is rejected before the write - Body only. Reddit exposes no API to edit a post title, ever - The post ID is unchanged **LinkedIn** - Text only, no time limit. Media, polls, articles, and reshare targets cannot be changed - Works for member and organization posts published through this API. The post keeps its ID and LinkedIn shows an \"edited\" marker - Text is limited to 3,000 characters; mentions and hashtags are preserved **Telegram** - No time limit; messages published through Zernio are editable indefinitely - Text posts: edits the message text (up to 4096 characters) - Media posts: edits the caption only (up to 1024 characters). The media itself cannot be swapped - For albums, the caption shown on the album (its first message) is edited - The message ID is unchanged **Pinterest** - Description only, maximum 800 characters. Media, link, and board cannot be changed, and a pin title derived from the old content's first line at publish stays as-is - Pinterest's pin-update endpoint is currently in closed beta; until the app is allowlisted by Pinterest, edits are rejected with a \"beta feature not yet enabled\" error - The pin ID is unchanged **Google Business Profile** - Post body (summary) text only. Call-to-action, event/offer fields, and media are untouched - No time limit and no edit limit. The post ID is unchanged - The post must still exist on Google: a post deleted from the Business Profile dashboard, or an event/offer post past its end date, returns a 404 **YouTube** - `content` replaces the video description only. The title is unchanged, even if it was originally derived from the content's first line at publish time - Title, tags, thumbnail, and privacy edits belong to `POST /v1/posts/{postId}/update-metadata` - No time window and no edit cap. The video ID is unchanged **Slack** - Text only, up to 4,000 characters. Media cannot be swapped, and media posts whose share message reference never resolved cannot be edited - No time limit unless workspace admins restrict message editing - The message ID is unchanged Media edits are not supported on any platform. The post record in Zernio is updated with the new content and an edit-history entry.
|
|
226
226
|
# @param post_id [String]
|
|
227
227
|
# @param edit_post_request [EditPostRequest]
|
|
228
228
|
# @param [Hash] opts the optional parameters
|
|
@@ -233,7 +233,7 @@ module Zernio
|
|
|
233
233
|
end
|
|
234
234
|
|
|
235
235
|
# Edit published post
|
|
236
|
-
# Edit the text of an already-published post. Supported on X (Twitter), Discord, Facebook, and
|
|
236
|
+
# Edit the text of an already-published post. Supported on X (Twitter), Discord, Facebook, Reddit, LinkedIn, Telegram, Pinterest, Google Business Profile, YouTube, and Slack. When a post was published to several accounts on the same platform, pass `accountId` to pick which account's copy to edit (the first entry is edited otherwise). Each platform enforces its own rules: **X (Twitter)** - Connected X account must have an active X Premium subscription - Must be within 1 hour of original publish time - Maximum 5 edits per tweet (enforced by X) - Threads cannot be edited, only single tweets - X assigns a NEW post ID on edit, returned as `id` **Discord** - No time limit and no premium requirement - The message ID is unchanged after the edit **Facebook** - Graph only permits editing a post that the same app created, so this works on posts published through Zernio and is rejected for posts created in Meta Business Suite / Composer or by another tool - Media cannot be swapped, only the message text - Reactions, comments, and shares are preserved. The post ID is unchanged **Reddit** - Self-posts only. A link post has no editable body and is rejected before the write - Body only. Reddit exposes no API to edit a post title, ever - The post ID is unchanged **LinkedIn** - Text only, no time limit. Media, polls, articles, and reshare targets cannot be changed - Works for member and organization posts published through this API. The post keeps its ID and LinkedIn shows an \"edited\" marker - Text is limited to 3,000 characters; mentions and hashtags are preserved **Telegram** - No time limit; messages published through Zernio are editable indefinitely - Text posts: edits the message text (up to 4096 characters) - Media posts: edits the caption only (up to 1024 characters). The media itself cannot be swapped - For albums, the caption shown on the album (its first message) is edited - The message ID is unchanged **Pinterest** - Description only, maximum 800 characters. Media, link, and board cannot be changed, and a pin title derived from the old content's first line at publish stays as-is - Pinterest's pin-update endpoint is currently in closed beta; until the app is allowlisted by Pinterest, edits are rejected with a \"beta feature not yet enabled\" error - The pin ID is unchanged **Google Business Profile** - Post body (summary) text only. Call-to-action, event/offer fields, and media are untouched - No time limit and no edit limit. The post ID is unchanged - The post must still exist on Google: a post deleted from the Business Profile dashboard, or an event/offer post past its end date, returns a 404 **YouTube** - `content` replaces the video description only. The title is unchanged, even if it was originally derived from the content's first line at publish time - Title, tags, thumbnail, and privacy edits belong to `POST /v1/posts/{postId}/update-metadata` - No time window and no edit cap. The video ID is unchanged **Slack** - Text only, up to 4,000 characters. Media cannot be swapped, and media posts whose share message reference never resolved cannot be edited - No time limit unless workspace admins restrict message editing - The message ID is unchanged Media edits are not supported on any platform. The post record in Zernio is updated with the new content and an edit-history entry.
|
|
237
237
|
# @param post_id [String]
|
|
238
238
|
# @param edit_post_request [EditPostRequest]
|
|
239
239
|
# @param [Hash] opts the optional parameters
|
|
@@ -17,7 +17,7 @@ module Zernio
|
|
|
17
17
|
class EditPost200Response < ApiModelBase
|
|
18
18
|
attr_accessor :success
|
|
19
19
|
|
|
20
|
-
# The platform post ID after the edit. X assigns a new ID;
|
|
20
|
+
# The platform post ID after the edit. X assigns a new ID; every other platform returns the original ID unchanged.
|
|
21
21
|
attr_accessor :id
|
|
22
22
|
|
|
23
23
|
# URL of the edited post
|
|
@@ -21,6 +21,9 @@ module Zernio
|
|
|
21
21
|
# The new post text content
|
|
22
22
|
attr_accessor :content
|
|
23
23
|
|
|
24
|
+
# Which account's copy of the post to edit when the post was published to several accounts on the same platform; defaults to the first.
|
|
25
|
+
attr_accessor :account_id
|
|
26
|
+
|
|
24
27
|
class EnumAttributeValidator
|
|
25
28
|
attr_reader :datatype
|
|
26
29
|
attr_reader :allowable_values
|
|
@@ -47,7 +50,8 @@ module Zernio
|
|
|
47
50
|
def self.attribute_map
|
|
48
51
|
{
|
|
49
52
|
:'platform' => :'platform',
|
|
50
|
-
:'content' => :'content'
|
|
53
|
+
:'content' => :'content',
|
|
54
|
+
:'account_id' => :'accountId'
|
|
51
55
|
}
|
|
52
56
|
end
|
|
53
57
|
|
|
@@ -65,7 +69,8 @@ module Zernio
|
|
|
65
69
|
def self.openapi_types
|
|
66
70
|
{
|
|
67
71
|
:'platform' => :'String',
|
|
68
|
-
:'content' => :'String'
|
|
72
|
+
:'content' => :'String',
|
|
73
|
+
:'account_id' => :'String'
|
|
69
74
|
}
|
|
70
75
|
end
|
|
71
76
|
|
|
@@ -102,6 +107,10 @@ module Zernio
|
|
|
102
107
|
else
|
|
103
108
|
self.content = nil
|
|
104
109
|
end
|
|
110
|
+
|
|
111
|
+
if attributes.key?(:'account_id')
|
|
112
|
+
self.account_id = attributes[:'account_id']
|
|
113
|
+
end
|
|
105
114
|
end
|
|
106
115
|
|
|
107
116
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -125,7 +134,7 @@ module Zernio
|
|
|
125
134
|
def valid?
|
|
126
135
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
127
136
|
return false if @platform.nil?
|
|
128
|
-
platform_validator = EnumAttributeValidator.new('String', ["twitter", "discord", "facebook", "reddit"])
|
|
137
|
+
platform_validator = EnumAttributeValidator.new('String', ["twitter", "discord", "facebook", "reddit", "linkedin", "telegram", "pinterest", "googlebusiness", "youtube", "slack"])
|
|
129
138
|
return false unless platform_validator.valid?(@platform)
|
|
130
139
|
return false if @content.nil?
|
|
131
140
|
true
|
|
@@ -134,7 +143,7 @@ module Zernio
|
|
|
134
143
|
# Custom attribute writer method checking allowed values (enum).
|
|
135
144
|
# @param [Object] platform Object to be assigned
|
|
136
145
|
def platform=(platform)
|
|
137
|
-
validator = EnumAttributeValidator.new('String', ["twitter", "discord", "facebook", "reddit"])
|
|
146
|
+
validator = EnumAttributeValidator.new('String', ["twitter", "discord", "facebook", "reddit", "linkedin", "telegram", "pinterest", "googlebusiness", "youtube", "slack"])
|
|
138
147
|
unless validator.valid?(platform)
|
|
139
148
|
fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
|
|
140
149
|
end
|
|
@@ -157,7 +166,8 @@ module Zernio
|
|
|
157
166
|
return true if self.equal?(o)
|
|
158
167
|
self.class == o.class &&
|
|
159
168
|
platform == o.platform &&
|
|
160
|
-
content == o.content
|
|
169
|
+
content == o.content &&
|
|
170
|
+
account_id == o.account_id
|
|
161
171
|
end
|
|
162
172
|
|
|
163
173
|
# @see the `==` method
|
|
@@ -169,7 +179,7 @@ module Zernio
|
|
|
169
179
|
# Calculates hash code according to all attributes.
|
|
170
180
|
# @return [Integer] Hash code
|
|
171
181
|
def hash
|
|
172
|
-
[platform, content].hash
|
|
182
|
+
[platform, content, account_id].hash
|
|
173
183
|
end
|
|
174
184
|
|
|
175
185
|
# Builds the object from hash
|
data/lib/zernio-sdk/version.rb
CHANGED
data/openapi.yaml
CHANGED
|
@@ -15111,7 +15111,10 @@ paths:
|
|
|
15111
15111
|
summary: Edit published post
|
|
15112
15112
|
description: |
|
|
15113
15113
|
Edit the text of an already-published post. Supported on X (Twitter), Discord,
|
|
15114
|
-
Facebook,
|
|
15114
|
+
Facebook, Reddit, LinkedIn, Telegram, Pinterest, Google Business Profile, YouTube,
|
|
15115
|
+
and Slack. When a post was published to several accounts on the same platform,
|
|
15116
|
+
pass `accountId` to pick which account's copy to edit (the first entry is edited
|
|
15117
|
+
otherwise). Each platform enforces its own rules:
|
|
15115
15118
|
|
|
15116
15119
|
**X (Twitter)**
|
|
15117
15120
|
- Connected X account must have an active X Premium subscription
|
|
@@ -15136,6 +15139,49 @@ paths:
|
|
|
15136
15139
|
- Body only. Reddit exposes no API to edit a post title, ever
|
|
15137
15140
|
- The post ID is unchanged
|
|
15138
15141
|
|
|
15142
|
+
**LinkedIn**
|
|
15143
|
+
- Text only, no time limit. Media, polls, articles, and reshare targets cannot be
|
|
15144
|
+
changed
|
|
15145
|
+
- Works for member and organization posts published through this API. The post
|
|
15146
|
+
keeps its ID and LinkedIn shows an "edited" marker
|
|
15147
|
+
- Text is limited to 3,000 characters; mentions and hashtags are preserved
|
|
15148
|
+
|
|
15149
|
+
**Telegram**
|
|
15150
|
+
- No time limit; messages published through Zernio are editable indefinitely
|
|
15151
|
+
- Text posts: edits the message text (up to 4096 characters)
|
|
15152
|
+
- Media posts: edits the caption only (up to 1024 characters). The media itself
|
|
15153
|
+
cannot be swapped
|
|
15154
|
+
- For albums, the caption shown on the album (its first message) is edited
|
|
15155
|
+
- The message ID is unchanged
|
|
15156
|
+
|
|
15157
|
+
**Pinterest**
|
|
15158
|
+
- Description only, maximum 800 characters. Media, link, and board cannot be
|
|
15159
|
+
changed, and a pin title derived from the old content's first line at publish
|
|
15160
|
+
stays as-is
|
|
15161
|
+
- Pinterest's pin-update endpoint is currently in closed beta; until the app is
|
|
15162
|
+
allowlisted by Pinterest, edits are rejected with a "beta feature not yet
|
|
15163
|
+
enabled" error
|
|
15164
|
+
- The pin ID is unchanged
|
|
15165
|
+
|
|
15166
|
+
**Google Business Profile**
|
|
15167
|
+
- Post body (summary) text only. Call-to-action, event/offer fields, and media are
|
|
15168
|
+
untouched
|
|
15169
|
+
- No time limit and no edit limit. The post ID is unchanged
|
|
15170
|
+
- The post must still exist on Google: a post deleted from the Business Profile
|
|
15171
|
+
dashboard, or an event/offer post past its end date, returns a 404
|
|
15172
|
+
|
|
15173
|
+
**YouTube**
|
|
15174
|
+
- `content` replaces the video description only. The title is unchanged, even if
|
|
15175
|
+
it was originally derived from the content's first line at publish time
|
|
15176
|
+
- Title, tags, thumbnail, and privacy edits belong to `POST /v1/posts/{postId}/update-metadata`
|
|
15177
|
+
- No time window and no edit cap. The video ID is unchanged
|
|
15178
|
+
|
|
15179
|
+
**Slack**
|
|
15180
|
+
- Text only, up to 4,000 characters. Media cannot be swapped, and media posts
|
|
15181
|
+
whose share message reference never resolved cannot be edited
|
|
15182
|
+
- No time limit unless workspace admins restrict message editing
|
|
15183
|
+
- The message ID is unchanged
|
|
15184
|
+
|
|
15139
15185
|
Media edits are not supported on any platform. The post record in Zernio is updated
|
|
15140
15186
|
with the new content and an edit-history entry.
|
|
15141
15187
|
parameters:
|
|
@@ -15154,10 +15200,15 @@ paths:
|
|
|
15154
15200
|
platform:
|
|
15155
15201
|
type: string
|
|
15156
15202
|
description: The platform to edit the post on.
|
|
15157
|
-
enum: [twitter, discord, facebook, reddit]
|
|
15203
|
+
enum: [twitter, discord, facebook, reddit, linkedin, telegram, pinterest, googlebusiness, youtube, slack]
|
|
15158
15204
|
content:
|
|
15159
15205
|
type: string
|
|
15160
15206
|
description: The new post text content
|
|
15207
|
+
accountId:
|
|
15208
|
+
type: string
|
|
15209
|
+
description: >
|
|
15210
|
+
Which account's copy of the post to edit when the post was published
|
|
15211
|
+
to several accounts on the same platform; defaults to the first.
|
|
15161
15212
|
example:
|
|
15162
15213
|
platform: "facebook"
|
|
15163
15214
|
content: "Updated post text with corrected information"
|
|
@@ -15173,8 +15224,8 @@ paths:
|
|
|
15173
15224
|
id:
|
|
15174
15225
|
type: string
|
|
15175
15226
|
description: >
|
|
15176
|
-
The platform post ID after the edit. X assigns a new ID;
|
|
15177
|
-
|
|
15227
|
+
The platform post ID after the edit. X assigns a new ID; every other
|
|
15228
|
+
platform returns the original ID unchanged.
|
|
15178
15229
|
url: { type: string, format: uri, description: URL of the edited post }
|
|
15179
15230
|
message: { type: string }
|
|
15180
15231
|
example:
|
|
@@ -15186,8 +15237,11 @@ paths:
|
|
|
15186
15237
|
description: >
|
|
15187
15238
|
Invalid request: platform not supported, post not published, edit window expired,
|
|
15188
15239
|
not X Premium, or missing content. Also returned when the platform rejects the edit
|
|
15189
|
-
with a 4xx, which covers a Reddit link post (no editable body)
|
|
15190
|
-
that was not created by this app
|
|
15240
|
+
with a 4xx, which covers a Reddit link post (no editable body), a Facebook post
|
|
15241
|
+
that was not created by this app, content over a platform's length limit
|
|
15242
|
+
(LinkedIn 3,000, Telegram 4096 text / 1024 caption, Pinterest 800, Slack 4,000),
|
|
15243
|
+
a Telegram edit with unchanged content, and a Pinterest app not yet allowlisted
|
|
15244
|
+
for the pin-update beta.
|
|
15191
15245
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
15192
15246
|
'403':
|
|
15193
15247
|
description: Forbidden
|
data/spec/api/posts_api_spec.rb
CHANGED
|
@@ -72,7 +72,7 @@ describe 'PostsApi' do
|
|
|
72
72
|
|
|
73
73
|
# unit tests for edit_post
|
|
74
74
|
# Edit published post
|
|
75
|
-
# Edit the text of an already-published post. Supported on X (Twitter), Discord, Facebook, and
|
|
75
|
+
# Edit the text of an already-published post. Supported on X (Twitter), Discord, Facebook, Reddit, LinkedIn, Telegram, Pinterest, Google Business Profile, YouTube, and Slack. When a post was published to several accounts on the same platform, pass `accountId` to pick which account's copy to edit (the first entry is edited otherwise). Each platform enforces its own rules: **X (Twitter)** - Connected X account must have an active X Premium subscription - Must be within 1 hour of original publish time - Maximum 5 edits per tweet (enforced by X) - Threads cannot be edited, only single tweets - X assigns a NEW post ID on edit, returned as `id` **Discord** - No time limit and no premium requirement - The message ID is unchanged after the edit **Facebook** - Graph only permits editing a post that the same app created, so this works on posts published through Zernio and is rejected for posts created in Meta Business Suite / Composer or by another tool - Media cannot be swapped, only the message text - Reactions, comments, and shares are preserved. The post ID is unchanged **Reddit** - Self-posts only. A link post has no editable body and is rejected before the write - Body only. Reddit exposes no API to edit a post title, ever - The post ID is unchanged **LinkedIn** - Text only, no time limit. Media, polls, articles, and reshare targets cannot be changed - Works for member and organization posts published through this API. The post keeps its ID and LinkedIn shows an \"edited\" marker - Text is limited to 3,000 characters; mentions and hashtags are preserved **Telegram** - No time limit; messages published through Zernio are editable indefinitely - Text posts: edits the message text (up to 4096 characters) - Media posts: edits the caption only (up to 1024 characters). The media itself cannot be swapped - For albums, the caption shown on the album (its first message) is edited - The message ID is unchanged **Pinterest** - Description only, maximum 800 characters. Media, link, and board cannot be changed, and a pin title derived from the old content's first line at publish stays as-is - Pinterest's pin-update endpoint is currently in closed beta; until the app is allowlisted by Pinterest, edits are rejected with a \"beta feature not yet enabled\" error - The pin ID is unchanged **Google Business Profile** - Post body (summary) text only. Call-to-action, event/offer fields, and media are untouched - No time limit and no edit limit. The post ID is unchanged - The post must still exist on Google: a post deleted from the Business Profile dashboard, or an event/offer post past its end date, returns a 404 **YouTube** - `content` replaces the video description only. The title is unchanged, even if it was originally derived from the content's first line at publish time - Title, tags, thumbnail, and privacy edits belong to `POST /v1/posts/{postId}/update-metadata` - No time window and no edit cap. The video ID is unchanged **Slack** - Text only, up to 4,000 characters. Media cannot be swapped, and media posts whose share message reference never resolved cannot be edited - No time limit unless workspace admins restrict message editing - The message ID is unchanged Media edits are not supported on any platform. The post record in Zernio is updated with the new content and an edit-history entry.
|
|
76
76
|
# @param post_id
|
|
77
77
|
# @param edit_post_request
|
|
78
78
|
# @param [Hash] opts the optional parameters
|
|
@@ -30,7 +30,7 @@ describe Zernio::EditPostRequest do
|
|
|
30
30
|
describe 'test attribute "platform"' do
|
|
31
31
|
it 'should work' do
|
|
32
32
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["twitter", "discord", "facebook", "reddit"])
|
|
33
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["twitter", "discord", "facebook", "reddit", "linkedin", "telegram", "pinterest", "googlebusiness", "youtube", "slack"])
|
|
34
34
|
# validator.allowable_values.each do |value|
|
|
35
35
|
# expect { instance.platform = value }.not_to raise_error
|
|
36
36
|
# end
|
|
@@ -43,4 +43,10 @@ describe Zernio::EditPostRequest do
|
|
|
43
43
|
end
|
|
44
44
|
end
|
|
45
45
|
|
|
46
|
+
describe 'test attribute "account_id"' do
|
|
47
|
+
it 'should work' do
|
|
48
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
46
52
|
end
|
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: late-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.722
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
@@ -5318,7 +5318,7 @@ files:
|
|
|
5318
5318
|
- spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
|
|
5319
5319
|
- spec/models/you_tube_video_retention_response_spec.rb
|
|
5320
5320
|
- spec/spec_helper.rb
|
|
5321
|
-
- zernio-sdk-0.0.
|
|
5321
|
+
- zernio-sdk-0.0.722.gem
|
|
5322
5322
|
- zernio-sdk.gemspec
|
|
5323
5323
|
homepage: https://openapi-generator.tech
|
|
5324
5324
|
licenses:
|
data/zernio-sdk-0.0.721.gem
DELETED
|
Binary file
|