late-sdk 0.0.617 → 0.0.619
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/FacebookPlatformData.md +3 -1
- data/docs/PostsApi.md +4 -4
- data/lib/zernio-sdk/api/posts_api.rb +6 -6
- data/lib/zernio-sdk/models/facebook_platform_data.rb +35 -4
- data/lib/zernio-sdk/version.rb +1 -1
- data/openapi.yaml +82 -6
- data/spec/api/posts_api_spec.rb +2 -2
- data/spec/models/facebook_platform_data_spec.rb +6 -0
- data/zernio-sdk-0.0.619.gem +0 -0
- metadata +2 -2
- data/zernio-sdk-0.0.617.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: adec945f4270a54a62ef05557ea6e4b5767f91ce78e0a5d9c9c5e5cf126f3449
|
|
4
|
+
data.tar.gz: d6addc95b9ba568ab0a8a8d0dbb6004d94a913d380056ab43a266c514c073193
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7e2802c440e774a66ed49eeb69c321688c6d7390096af09346429ace57bc72ff03326502205cdc9621a1dc80015dcc1eebe0f0350bc005b4204e8eab1bf5e0fa
|
|
7
|
+
data.tar.gz: 931723d9206d64a3fd4b39eda8d9498eb2312c755207e09990f9f3cccce4079d7df898a22efb92dadc70acaa8227b752d66e41db1bac7e1693b9ea1af0dd604e
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
| **geo_restriction** | [**GeoRestriction**](GeoRestriction.md) | | [optional] |
|
|
13
13
|
| **carousel_cards** | [**Array<FacebookPlatformDataCarouselCardsInner>**](FacebookPlatformDataCarouselCardsInner.md) | Renders the post as a multi-link carousel (organic Page post). When set, mediaItems must be provided with the same length and all items must be images (no videos). Each cards[i] adds the click-through link and headline for the image at mediaItems[i]. Mutually exclusive with contentType=story|reel. Facebook display truncates name at ~35 chars and description at ~30 chars; longer strings are accepted but get truncated on render. | [optional] |
|
|
14
14
|
| **carousel_link** | **String** | Optional top-level \"See more\" destination shown on the carousel end card. Defaults to the first card's link when omitted. Only used together with carouselCards. | [optional] |
|
|
15
|
+
| **text_format_preset_id** | **String** | Facebook-defined preset ID that renders the post as large text on a colored background (Graph `text_format_preset_id`). Supply the raw numeric ID from Meta; we do not publish a catalog of presets and Facebook may change the available set. Pages only (ignored on personal profiles and groups) and text-only feed posts only: the request is rejected with 400 when mediaItems or carouselCards are present, when contentType is story or reel, when content is empty, or when content exceeds 130 characters. Those are Facebook limits, and above them Facebook silently drops the background and publishes a plain text post instead of returning an error, so we reject up front rather than let the background disappear. A URL detected in the content is NOT attached as a link preview while a preset is set, because a link attachment also makes Facebook drop the background. | [optional] |
|
|
15
16
|
|
|
16
17
|
## Example
|
|
17
18
|
|
|
@@ -26,7 +27,8 @@ instance = Zernio::FacebookPlatformData.new(
|
|
|
26
27
|
page_id: null,
|
|
27
28
|
geo_restriction: null,
|
|
28
29
|
carousel_cards: null,
|
|
29
|
-
carousel_link: null
|
|
30
|
+
carousel_link: null,
|
|
31
|
+
text_format_preset_id: null
|
|
30
32
|
)
|
|
31
33
|
```
|
|
32
34
|
|
data/docs/PostsApi.md
CHANGED
|
@@ -393,12 +393,12 @@ end
|
|
|
393
393
|
api_instance = Zernio::PostsApi.new
|
|
394
394
|
opts = {
|
|
395
395
|
page: 56, # Integer | Page number (1-based)
|
|
396
|
-
limit: 56, # Integer | Page size
|
|
396
|
+
limit: 56, # Integer | Page size. Values above the maximum return 400 rather than being clamped.
|
|
397
397
|
source: 'zernio', # String | Which collection to read. `zernio` (default) returns posts authored through Zernio. `external` returns posts synced from the platform (existing/historical posts that were published outside Zernio). Combine with `accountId` and paginate via `page`/`limit` to walk the full synced history (we keep up to the last ~12 months per account).
|
|
398
398
|
status: 'draft', # String |
|
|
399
399
|
platform: 'twitter', # String |
|
|
400
400
|
profile_id: 'profile_id_example', # String |
|
|
401
|
-
created_by: 'created_by_example', # String |
|
|
401
|
+
created_by: 'created_by_example', # String | Filter posts to those created by a specific team user (24-char hex ObjectId).
|
|
402
402
|
date_from: Date.parse('2013-10-20'), # Date |
|
|
403
403
|
date_to: Date.parse('2013-10-20'), # Date |
|
|
404
404
|
include_hidden: true, # Boolean |
|
|
@@ -439,12 +439,12 @@ end
|
|
|
439
439
|
| Name | Type | Description | Notes |
|
|
440
440
|
| ---- | ---- | ----------- | ----- |
|
|
441
441
|
| **page** | **Integer** | Page number (1-based) | [optional][default to 1] |
|
|
442
|
-
| **limit** | **Integer** | Page size | [optional][default to 10] |
|
|
442
|
+
| **limit** | **Integer** | Page size. Values above the maximum return 400 rather than being clamped. | [optional][default to 10] |
|
|
443
443
|
| **source** | **String** | Which collection to read. `zernio` (default) returns posts authored through Zernio. `external` returns posts synced from the platform (existing/historical posts that were published outside Zernio). Combine with `accountId` and paginate via `page`/`limit` to walk the full synced history (we keep up to the last ~12 months per account). | [optional][default to 'zernio'] |
|
|
444
444
|
| **status** | **String** | | [optional] |
|
|
445
445
|
| **platform** | **String** | | [optional] |
|
|
446
446
|
| **profile_id** | **String** | | [optional] |
|
|
447
|
-
| **created_by** | **String** |
|
|
447
|
+
| **created_by** | **String** | Filter posts to those created by a specific team user (24-char hex ObjectId). | [optional] |
|
|
448
448
|
| **date_from** | **Date** | | [optional] |
|
|
449
449
|
| **date_to** | **Date** | | [optional] |
|
|
450
450
|
| **include_hidden** | **Boolean** | | [optional][default to false] |
|
|
@@ -362,12 +362,12 @@ module Zernio
|
|
|
362
362
|
# Returns a paginated list of posts. Published posts include platformPostUrl with the public URL on each platform.
|
|
363
363
|
# @param [Hash] opts the optional parameters
|
|
364
364
|
# @option opts [Integer] :page Page number (1-based) (default to 1)
|
|
365
|
-
# @option opts [Integer] :limit Page size (default to 10)
|
|
365
|
+
# @option opts [Integer] :limit Page size. Values above the maximum return 400 rather than being clamped. (default to 10)
|
|
366
366
|
# @option opts [String] :source Which collection to read. `zernio` (default) returns posts authored through Zernio. `external` returns posts synced from the platform (existing/historical posts that were published outside Zernio). Combine with `accountId` and paginate via `page`/`limit` to walk the full synced history (we keep up to the last ~12 months per account). (default to 'zernio')
|
|
367
367
|
# @option opts [String] :status
|
|
368
368
|
# @option opts [String] :platform
|
|
369
369
|
# @option opts [String] :profile_id
|
|
370
|
-
# @option opts [String] :created_by
|
|
370
|
+
# @option opts [String] :created_by Filter posts to those created by a specific team user (24-char hex ObjectId).
|
|
371
371
|
# @option opts [Date] :date_from
|
|
372
372
|
# @option opts [Date] :date_to
|
|
373
373
|
# @option opts [Boolean] :include_hidden (default to false)
|
|
@@ -384,12 +384,12 @@ module Zernio
|
|
|
384
384
|
# Returns a paginated list of posts. Published posts include platformPostUrl with the public URL on each platform.
|
|
385
385
|
# @param [Hash] opts the optional parameters
|
|
386
386
|
# @option opts [Integer] :page Page number (1-based) (default to 1)
|
|
387
|
-
# @option opts [Integer] :limit Page size (default to 10)
|
|
387
|
+
# @option opts [Integer] :limit Page size. Values above the maximum return 400 rather than being clamped. (default to 10)
|
|
388
388
|
# @option opts [String] :source Which collection to read. `zernio` (default) returns posts authored through Zernio. `external` returns posts synced from the platform (existing/historical posts that were published outside Zernio). Combine with `accountId` and paginate via `page`/`limit` to walk the full synced history (we keep up to the last ~12 months per account). (default to 'zernio')
|
|
389
389
|
# @option opts [String] :status
|
|
390
390
|
# @option opts [String] :platform
|
|
391
391
|
# @option opts [String] :profile_id
|
|
392
|
-
# @option opts [String] :created_by
|
|
392
|
+
# @option opts [String] :created_by Filter posts to those created by a specific team user (24-char hex ObjectId).
|
|
393
393
|
# @option opts [Date] :date_from
|
|
394
394
|
# @option opts [Date] :date_to
|
|
395
395
|
# @option opts [Boolean] :include_hidden (default to false)
|
|
@@ -405,8 +405,8 @@ module Zernio
|
|
|
405
405
|
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling PostsApi.list_posts, must be greater than or equal to 1.'
|
|
406
406
|
end
|
|
407
407
|
|
|
408
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] >
|
|
409
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PostsApi.list_posts, must be smaller than or equal to
|
|
408
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
409
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PostsApi.list_posts, must be smaller than or equal to 500.'
|
|
410
410
|
end
|
|
411
411
|
|
|
412
412
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
@@ -39,6 +39,9 @@ module Zernio
|
|
|
39
39
|
# Optional top-level \"See more\" destination shown on the carousel end card. Defaults to the first card's link when omitted. Only used together with carouselCards.
|
|
40
40
|
attr_accessor :carousel_link
|
|
41
41
|
|
|
42
|
+
# Facebook-defined preset ID that renders the post as large text on a colored background (Graph `text_format_preset_id`). Supply the raw numeric ID from Meta; we do not publish a catalog of presets and Facebook may change the available set. Pages only (ignored on personal profiles and groups) and text-only feed posts only: the request is rejected with 400 when mediaItems or carouselCards are present, when contentType is story or reel, when content is empty, or when content exceeds 130 characters. Those are Facebook limits, and above them Facebook silently drops the background and publishes a plain text post instead of returning an error, so we reject up front rather than let the background disappear. A URL detected in the content is NOT attached as a link preview while a preset is set, because a link attachment also makes Facebook drop the background.
|
|
43
|
+
attr_accessor :text_format_preset_id
|
|
44
|
+
|
|
42
45
|
class EnumAttributeValidator
|
|
43
46
|
attr_reader :datatype
|
|
44
47
|
attr_reader :allowable_values
|
|
@@ -71,7 +74,8 @@ module Zernio
|
|
|
71
74
|
:'page_id' => :'pageId',
|
|
72
75
|
:'geo_restriction' => :'geoRestriction',
|
|
73
76
|
:'carousel_cards' => :'carouselCards',
|
|
74
|
-
:'carousel_link' => :'carouselLink'
|
|
77
|
+
:'carousel_link' => :'carouselLink',
|
|
78
|
+
:'text_format_preset_id' => :'textFormatPresetId'
|
|
75
79
|
}
|
|
76
80
|
end
|
|
77
81
|
|
|
@@ -95,7 +99,8 @@ module Zernio
|
|
|
95
99
|
:'page_id' => :'String',
|
|
96
100
|
:'geo_restriction' => :'GeoRestriction',
|
|
97
101
|
:'carousel_cards' => :'Array<FacebookPlatformDataCarouselCardsInner>',
|
|
98
|
-
:'carousel_link' => :'String'
|
|
102
|
+
:'carousel_link' => :'String',
|
|
103
|
+
:'text_format_preset_id' => :'String'
|
|
99
104
|
}
|
|
100
105
|
end
|
|
101
106
|
|
|
@@ -156,6 +161,10 @@ module Zernio
|
|
|
156
161
|
if attributes.key?(:'carousel_link')
|
|
157
162
|
self.carousel_link = attributes[:'carousel_link']
|
|
158
163
|
end
|
|
164
|
+
|
|
165
|
+
if attributes.key?(:'text_format_preset_id')
|
|
166
|
+
self.text_format_preset_id = attributes[:'text_format_preset_id']
|
|
167
|
+
end
|
|
159
168
|
end
|
|
160
169
|
|
|
161
170
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -171,6 +180,11 @@ module Zernio
|
|
|
171
180
|
invalid_properties.push('invalid value for "carousel_cards", number of items must be greater than or equal to 2.')
|
|
172
181
|
end
|
|
173
182
|
|
|
183
|
+
pattern = Regexp.new(/^\d+$/)
|
|
184
|
+
if !@text_format_preset_id.nil? && @text_format_preset_id !~ pattern
|
|
185
|
+
invalid_properties.push("invalid value for \"text_format_preset_id\", must conform to the pattern #{pattern}.")
|
|
186
|
+
end
|
|
187
|
+
|
|
174
188
|
invalid_properties
|
|
175
189
|
end
|
|
176
190
|
|
|
@@ -182,6 +196,7 @@ module Zernio
|
|
|
182
196
|
return false unless content_type_validator.valid?(@content_type)
|
|
183
197
|
return false if !@carousel_cards.nil? && @carousel_cards.length > 5
|
|
184
198
|
return false if !@carousel_cards.nil? && @carousel_cards.length < 2
|
|
199
|
+
return false if !@text_format_preset_id.nil? && @text_format_preset_id !~ Regexp.new(/^\d+$/)
|
|
185
200
|
true
|
|
186
201
|
end
|
|
187
202
|
|
|
@@ -213,6 +228,21 @@ module Zernio
|
|
|
213
228
|
@carousel_cards = carousel_cards
|
|
214
229
|
end
|
|
215
230
|
|
|
231
|
+
# Custom attribute writer method with validation
|
|
232
|
+
# @param [Object] text_format_preset_id Value to be assigned
|
|
233
|
+
def text_format_preset_id=(text_format_preset_id)
|
|
234
|
+
if text_format_preset_id.nil?
|
|
235
|
+
fail ArgumentError, 'text_format_preset_id cannot be nil'
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
pattern = Regexp.new(/^\d+$/)
|
|
239
|
+
if text_format_preset_id !~ pattern
|
|
240
|
+
fail ArgumentError, "invalid value for \"text_format_preset_id\", must conform to the pattern #{pattern}."
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
@text_format_preset_id = text_format_preset_id
|
|
244
|
+
end
|
|
245
|
+
|
|
216
246
|
# Checks equality by comparing each attribute.
|
|
217
247
|
# @param [Object] Object to be compared
|
|
218
248
|
def ==(o)
|
|
@@ -225,7 +255,8 @@ module Zernio
|
|
|
225
255
|
page_id == o.page_id &&
|
|
226
256
|
geo_restriction == o.geo_restriction &&
|
|
227
257
|
carousel_cards == o.carousel_cards &&
|
|
228
|
-
carousel_link == o.carousel_link
|
|
258
|
+
carousel_link == o.carousel_link &&
|
|
259
|
+
text_format_preset_id == o.text_format_preset_id
|
|
229
260
|
end
|
|
230
261
|
|
|
231
262
|
# @see the `==` method
|
|
@@ -237,7 +268,7 @@ module Zernio
|
|
|
237
268
|
# Calculates hash code according to all attributes.
|
|
238
269
|
# @return [Integer] Hash code
|
|
239
270
|
def hash
|
|
240
|
-
[draft, content_type, title, first_comment, page_id, geo_restriction, carousel_cards, carousel_link].hash
|
|
271
|
+
[draft, content_type, title, first_comment, page_id, geo_restriction, carousel_cards, carousel_link, text_format_preset_id].hash
|
|
241
272
|
end
|
|
242
273
|
|
|
243
274
|
# Builds the object from hash
|
data/lib/zernio-sdk/version.rb
CHANGED
data/openapi.yaml
CHANGED
|
@@ -500,11 +500,6 @@ components:
|
|
|
500
500
|
in: query
|
|
501
501
|
description: Page number (1-based)
|
|
502
502
|
schema: { type: integer, minimum: 1, default: 1 }
|
|
503
|
-
LimitParam:
|
|
504
|
-
name: limit
|
|
505
|
-
in: query
|
|
506
|
-
description: Page size
|
|
507
|
-
schema: { type: integer, minimum: 1, maximum: 100, default: 10 }
|
|
508
503
|
responses:
|
|
509
504
|
BadRequest:
|
|
510
505
|
description: Invalid request
|
|
@@ -4542,6 +4537,21 @@ components:
|
|
|
4542
4537
|
description: >
|
|
4543
4538
|
Optional top-level "See more" destination shown on the carousel end card. Defaults
|
|
4544
4539
|
to the first card's link when omitted. Only used together with carouselCards.
|
|
4540
|
+
textFormatPresetId:
|
|
4541
|
+
type: string
|
|
4542
|
+
pattern: '^\d+$'
|
|
4543
|
+
description: >
|
|
4544
|
+
Facebook-defined preset ID that renders the post as large text on a colored
|
|
4545
|
+
background (Graph `text_format_preset_id`). Supply the raw numeric ID from Meta;
|
|
4546
|
+
we do not publish a catalog of presets and Facebook may change the available set.
|
|
4547
|
+
Pages only (ignored on personal profiles and groups) and text-only feed posts only:
|
|
4548
|
+
the request is rejected with 400 when mediaItems or carouselCards are present, when
|
|
4549
|
+
contentType is story or reel, when content is empty, or when content exceeds 130
|
|
4550
|
+
characters. Those are Facebook limits, and above them Facebook silently drops the
|
|
4551
|
+
background and publishes a plain text post instead of returning an error, so we
|
|
4552
|
+
reject up front rather than let the background disappear. A URL detected in the
|
|
4553
|
+
content is NOT attached as a link preview while a preset is set, because a link
|
|
4554
|
+
attachment also makes Facebook drop the background.
|
|
4545
4555
|
description: >
|
|
4546
4556
|
Feed posts support up to 10 images (no mixed video+image). Stories require single media (24h, no captions).
|
|
4547
4557
|
Reels require single vertical video (9:16, 3-60s). Carousel posts (carouselCards) render a 2-5 card
|
|
@@ -12332,7 +12342,10 @@ paths:
|
|
|
12332
12342
|
description: Returns a paginated list of posts. Published posts include platformPostUrl with the public URL on each platform.
|
|
12333
12343
|
parameters:
|
|
12334
12344
|
- $ref: '#/components/parameters/PageParam'
|
|
12335
|
-
-
|
|
12345
|
+
- name: limit
|
|
12346
|
+
in: query
|
|
12347
|
+
schema: { type: integer, minimum: 1, maximum: 500, default: 10 }
|
|
12348
|
+
description: 'Page size. Values above the maximum return 400 rather than being clamped.'
|
|
12336
12349
|
- name: source
|
|
12337
12350
|
in: query
|
|
12338
12351
|
schema: { type: string, enum: [zernio, external], default: zernio }
|
|
@@ -12354,6 +12367,7 @@ paths:
|
|
|
12354
12367
|
- name: createdBy
|
|
12355
12368
|
in: query
|
|
12356
12369
|
schema: { type: string }
|
|
12370
|
+
description: 'Filter posts to those created by a specific team user (24-char hex ObjectId).'
|
|
12357
12371
|
- name: dateFrom
|
|
12358
12372
|
in: query
|
|
12359
12373
|
schema: { type: string, format: date }
|
|
@@ -12456,6 +12470,7 @@ paths:
|
|
|
12456
12470
|
limit: 10
|
|
12457
12471
|
total: 1
|
|
12458
12472
|
pages: 1
|
|
12473
|
+
'400': { $ref: '#/components/responses/BadRequest' }
|
|
12459
12474
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
12460
12475
|
post:
|
|
12461
12476
|
operationId: createPost
|
|
@@ -13077,9 +13092,13 @@ paths:
|
|
|
13077
13092
|
errorMessage: "Post text exceeds the 500 character limit for Threads."
|
|
13078
13093
|
errorCategory: "user_content"
|
|
13079
13094
|
errorSource: "user"
|
|
13095
|
+
'400': { $ref: '#/components/responses/BadRequest' }
|
|
13080
13096
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
13081
13097
|
'403':
|
|
13082
13098
|
description: Forbidden
|
|
13099
|
+
content:
|
|
13100
|
+
application/json:
|
|
13101
|
+
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
13083
13102
|
'404': { $ref: '#/components/responses/NotFound' }
|
|
13084
13103
|
put:
|
|
13085
13104
|
operationId: updatePost
|
|
@@ -13185,9 +13204,15 @@ paths:
|
|
|
13185
13204
|
description: Partial publish success
|
|
13186
13205
|
'400':
|
|
13187
13206
|
description: Invalid request
|
|
13207
|
+
content:
|
|
13208
|
+
application/json:
|
|
13209
|
+
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
13188
13210
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
13189
13211
|
'403':
|
|
13190
13212
|
description: Forbidden
|
|
13213
|
+
content:
|
|
13214
|
+
application/json:
|
|
13215
|
+
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
13191
13216
|
'404': { $ref: '#/components/responses/NotFound' }
|
|
13192
13217
|
delete:
|
|
13193
13218
|
operationId: deletePost
|
|
@@ -13210,9 +13235,15 @@ paths:
|
|
|
13210
13235
|
message: "Post deleted successfully"
|
|
13211
13236
|
'400':
|
|
13212
13237
|
description: Cannot delete published posts
|
|
13238
|
+
content:
|
|
13239
|
+
application/json:
|
|
13240
|
+
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
13213
13241
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
13214
13242
|
'403':
|
|
13215
13243
|
description: Forbidden
|
|
13244
|
+
content:
|
|
13245
|
+
application/json:
|
|
13246
|
+
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
13216
13247
|
'404': { $ref: '#/components/responses/NotFound' }
|
|
13217
13248
|
/v1/posts/bulk-upload:
|
|
13218
13249
|
post:
|
|
@@ -13274,7 +13305,23 @@ paths:
|
|
|
13274
13305
|
warnings: []
|
|
13275
13306
|
'400':
|
|
13276
13307
|
description: Invalid CSV or validation errors
|
|
13308
|
+
content:
|
|
13309
|
+
application/json:
|
|
13310
|
+
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
13277
13311
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
13312
|
+
'402':
|
|
13313
|
+
description: 'Payment required: the account owner has a failed payment. Not returned on dry-run.'
|
|
13314
|
+
content:
|
|
13315
|
+
application/json:
|
|
13316
|
+
schema:
|
|
13317
|
+
type: object
|
|
13318
|
+
properties:
|
|
13319
|
+
error: { type: string }
|
|
13320
|
+
'404':
|
|
13321
|
+
description: Authenticated user not found
|
|
13322
|
+
content:
|
|
13323
|
+
application/json:
|
|
13324
|
+
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
13278
13325
|
'429':
|
|
13279
13326
|
description: |
|
|
13280
13327
|
Rate limit exceeded. Possible causes: API rate limit (requests per minute) or account cooldown (one or more accounts for platforms specified in the CSV are temporarily rate-limited).
|
|
@@ -13326,12 +13373,29 @@ paths:
|
|
|
13326
13373
|
description: Partial success
|
|
13327
13374
|
'400':
|
|
13328
13375
|
description: Invalid state
|
|
13376
|
+
content:
|
|
13377
|
+
application/json:
|
|
13378
|
+
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
13329
13379
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
13380
|
+
'402':
|
|
13381
|
+
description: 'Payment required: the account owner has a failed payment.'
|
|
13382
|
+
content:
|
|
13383
|
+
application/json:
|
|
13384
|
+
schema:
|
|
13385
|
+
type: object
|
|
13386
|
+
properties:
|
|
13387
|
+
error: { type: string }
|
|
13330
13388
|
'403':
|
|
13331
13389
|
description: Forbidden
|
|
13390
|
+
content:
|
|
13391
|
+
application/json:
|
|
13392
|
+
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
13332
13393
|
'404': { $ref: '#/components/responses/NotFound' }
|
|
13333
13394
|
'409':
|
|
13334
13395
|
description: Post is currently publishing
|
|
13396
|
+
content:
|
|
13397
|
+
application/json:
|
|
13398
|
+
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
13335
13399
|
'429':
|
|
13336
13400
|
description: |
|
|
13337
13401
|
Rate limit exceeded. Possible causes: API rate limit (requests per minute), velocity limit (25 posts/hour per account), or account cooldown (temporarily rate-limited due to repeated errors).
|
|
@@ -13395,9 +13459,15 @@ paths:
|
|
|
13395
13459
|
message: "Post deleted from threads successfully"
|
|
13396
13460
|
'400':
|
|
13397
13461
|
description: "Invalid request: platform not supported for deletion, post not on that platform, not published, no platform post ID, or no access token."
|
|
13462
|
+
content:
|
|
13463
|
+
application/json:
|
|
13464
|
+
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
13398
13465
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
13399
13466
|
'403':
|
|
13400
13467
|
description: Forbidden
|
|
13468
|
+
content:
|
|
13469
|
+
application/json:
|
|
13470
|
+
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
13401
13471
|
'404': { $ref: '#/components/responses/NotFound' }
|
|
13402
13472
|
'500':
|
|
13403
13473
|
description: Platform API deletion failed
|
|
@@ -13607,9 +13677,15 @@ paths:
|
|
|
13607
13677
|
updatedFields: ["title", "description", "tags"]
|
|
13608
13678
|
'400':
|
|
13609
13679
|
description: "Invalid request: unsupported platform, post not published, missing fields, or validation error."
|
|
13680
|
+
content:
|
|
13681
|
+
application/json:
|
|
13682
|
+
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
13610
13683
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
13611
13684
|
'403':
|
|
13612
13685
|
description: Forbidden
|
|
13686
|
+
content:
|
|
13687
|
+
application/json:
|
|
13688
|
+
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
13613
13689
|
'404': { $ref: '#/components/responses/NotFound' }
|
|
13614
13690
|
'500':
|
|
13615
13691
|
description: Platform API update failed
|
data/spec/api/posts_api_spec.rb
CHANGED
|
@@ -100,12 +100,12 @@ describe 'PostsApi' do
|
|
|
100
100
|
# Returns a paginated list of posts. Published posts include platformPostUrl with the public URL on each platform.
|
|
101
101
|
# @param [Hash] opts the optional parameters
|
|
102
102
|
# @option opts [Integer] :page Page number (1-based)
|
|
103
|
-
# @option opts [Integer] :limit Page size
|
|
103
|
+
# @option opts [Integer] :limit Page size. Values above the maximum return 400 rather than being clamped.
|
|
104
104
|
# @option opts [String] :source Which collection to read. `zernio` (default) returns posts authored through Zernio. `external` returns posts synced from the platform (existing/historical posts that were published outside Zernio). Combine with `accountId` and paginate via `page`/`limit` to walk the full synced history (we keep up to the last ~12 months per account).
|
|
105
105
|
# @option opts [String] :status
|
|
106
106
|
# @option opts [String] :platform
|
|
107
107
|
# @option opts [String] :profile_id
|
|
108
|
-
# @option opts [String] :created_by
|
|
108
|
+
# @option opts [String] :created_by Filter posts to those created by a specific team user (24-char hex ObjectId).
|
|
109
109
|
# @option opts [Date] :date_from
|
|
110
110
|
# @option opts [Date] :date_to
|
|
111
111
|
# @option opts [Boolean] :include_hidden
|
|
@@ -79,4 +79,10 @@ describe Zernio::FacebookPlatformData do
|
|
|
79
79
|
end
|
|
80
80
|
end
|
|
81
81
|
|
|
82
|
+
describe 'test attribute "text_format_preset_id"' do
|
|
83
|
+
it 'should work' do
|
|
84
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
|
|
82
88
|
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.619
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
@@ -4886,7 +4886,7 @@ files:
|
|
|
4886
4886
|
- spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
|
|
4887
4887
|
- spec/models/you_tube_video_retention_response_spec.rb
|
|
4888
4888
|
- spec/spec_helper.rb
|
|
4889
|
-
- zernio-sdk-0.0.
|
|
4889
|
+
- zernio-sdk-0.0.619.gem
|
|
4890
4890
|
- zernio-sdk.gemspec
|
|
4891
4891
|
homepage: https://openapi-generator.tech
|
|
4892
4892
|
licenses:
|
data/zernio-sdk-0.0.617.gem
DELETED
|
Binary file
|