late-sdk 0.0.739 → 0.0.741
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/README.md +6 -0
- data/docs/AdCreativesApi.md +145 -1
- data/docs/CommentsApi.md +2 -2
- data/docs/DeleteAdVideo200Response.md +22 -0
- data/docs/UploadAdVideo201Response.md +20 -0
- data/docs/UploadAdVideo201ResponseVideo.md +20 -0
- data/docs/UploadAdVideoRequest.md +26 -0
- data/lib/zernio-sdk/api/ad_creatives_api.rb +147 -2
- data/lib/zernio-sdk/api/comments_api.rb +4 -4
- data/lib/zernio-sdk/models/delete_ad_video200_response.rb +165 -0
- data/lib/zernio-sdk/models/upload_ad_video201_response.rb +156 -0
- data/lib/zernio-sdk/models/upload_ad_video201_response_video.rb +159 -0
- data/lib/zernio-sdk/models/upload_ad_video_request.rb +222 -0
- data/lib/zernio-sdk/version.rb +1 -1
- data/lib/zernio-sdk.rb +4 -0
- data/openapi.yaml +99 -1
- data/spec/api/ad_creatives_api_spec.rb +27 -1
- data/spec/api/comments_api_spec.rb +2 -2
- data/spec/models/delete_ad_video200_response_spec.rb +48 -0
- data/spec/models/upload_ad_video201_response_spec.rb +42 -0
- data/spec/models/upload_ad_video201_response_video_spec.rb +42 -0
- data/spec/models/upload_ad_video_request_spec.rb +60 -0
- data/zernio-sdk-0.0.741.gem +0 -0
- metadata +18 -2
- data/zernio-sdk-0.0.739.gem +0 -0
data/lib/zernio-sdk/version.rb
CHANGED
data/lib/zernio-sdk.rb
CHANGED
|
@@ -370,6 +370,7 @@ require 'zernio-sdk/models/delete_account_group200_response'
|
|
|
370
370
|
require 'zernio-sdk/models/delete_ad_campaign200_response'
|
|
371
371
|
require 'zernio-sdk/models/delete_ad_campaign_request'
|
|
372
372
|
require 'zernio-sdk/models/delete_ad_creative200_response'
|
|
373
|
+
require 'zernio-sdk/models/delete_ad_video200_response'
|
|
373
374
|
require 'zernio-sdk/models/delete_discord_scheduled_event200_response'
|
|
374
375
|
require 'zernio-sdk/models/delete_google_business_media200_response'
|
|
375
376
|
require 'zernio-sdk/models/delete_google_business_place_action200_response'
|
|
@@ -1515,6 +1516,9 @@ require 'zernio-sdk/models/update_youtube_default_playlist_request'
|
|
|
1515
1516
|
require 'zernio-sdk/models/upload_ad_image201_response'
|
|
1516
1517
|
require 'zernio-sdk/models/upload_ad_image201_response_image'
|
|
1517
1518
|
require 'zernio-sdk/models/upload_ad_image_request'
|
|
1519
|
+
require 'zernio-sdk/models/upload_ad_video201_response'
|
|
1520
|
+
require 'zernio-sdk/models/upload_ad_video201_response_video'
|
|
1521
|
+
require 'zernio-sdk/models/upload_ad_video_request'
|
|
1518
1522
|
require 'zernio-sdk/models/upload_media_direct200_response'
|
|
1519
1523
|
require 'zernio-sdk/models/upload_phone_number_kyc_document200_response'
|
|
1520
1524
|
require 'zernio-sdk/models/upload_phone_number_port_in_document200_response'
|
data/openapi.yaml
CHANGED
|
@@ -27254,6 +27254,11 @@ paths:
|
|
|
27254
27254
|
description: |
|
|
27255
27255
|
Returns posts with comment counts from all connected accounts. Aggregates data across multiple accounts.
|
|
27256
27256
|
|
|
27257
|
+
Responses are cached for up to 10 minutes, so the feed may lag new comments by that
|
|
27258
|
+
window. Do not poll this endpoint for real-time updates: subscribe to the
|
|
27259
|
+
`comment.received` webhook, which fires for every new comment across your posts and
|
|
27260
|
+
carries the post reference needed to keep this list current.
|
|
27261
|
+
|
|
27257
27262
|
For users with the Ads add-on (Metronome plans always qualify), the user's Meta ads
|
|
27258
27263
|
(boosted/dark posts) are included too. There's one row per (ad, placement-with-comments):
|
|
27259
27264
|
an ad that runs on both Facebook feed and Instagram feed produces up to two rows (the
|
|
@@ -27380,6 +27385,11 @@ paths:
|
|
|
27380
27385
|
On Facebook and Instagram, passing a COMMENT id as `postId` is also supported and
|
|
27381
27386
|
returns that comment's replies instead of the post's top-level comments. This is not
|
|
27382
27387
|
available on YouTube, where `postId` must be a video id.
|
|
27388
|
+
|
|
27389
|
+
Responses are cached for up to 10 minutes, so a page may lag new comments by that
|
|
27390
|
+
window. Do not poll this endpoint for real-time updates: subscribe to the
|
|
27391
|
+
`comment.received` webhook, which delivers new comments as they arrive. Your own
|
|
27392
|
+
writes (creating, replying to, or deleting a comment) refresh the cache immediately.
|
|
27383
27393
|
tags: [Comments]
|
|
27384
27394
|
security: [{ bearerAuth: [] }]
|
|
27385
27395
|
parameters:
|
|
@@ -43640,6 +43650,59 @@ paths:
|
|
|
43640
43650
|
'501': { description: Only supported on Meta (facebook/instagram) }
|
|
43641
43651
|
|
|
43642
43652
|
/v1/ads/videos:
|
|
43653
|
+
post:
|
|
43654
|
+
x-resource-group: "ads"
|
|
43655
|
+
operationId: uploadAdVideo
|
|
43656
|
+
tags: ["Ad Creatives"]
|
|
43657
|
+
x-platforms: ["meta"]
|
|
43658
|
+
summary: Upload an ad video
|
|
43659
|
+
description: |-
|
|
43660
|
+
Standalone ad-video upload (parallel to POST /v1/ads/images), so a video creative can
|
|
43661
|
+
be rendered via POST /v1/ads/preview or attached via `video.id` on POST /v1/ads/create
|
|
43662
|
+
before an ad exists.
|
|
43663
|
+
|
|
43664
|
+
Accepts either an https `videoUrl` we download server-side (SSRF-guarded) or raw
|
|
43665
|
+
`videoBase64` bytes; exactly one is required. `videoBase64` is capped by Vercel's body
|
|
43666
|
+
limit — around 4.5 MB payload in practice, so larger videos must come via `videoUrl`.
|
|
43667
|
+
|
|
43668
|
+
Returns the Meta `video.id` (reusable wherever `video.id` is accepted) plus Meta's
|
|
43669
|
+
auto-generated poster URL when available. The endpoint waits until Meta reports the
|
|
43670
|
+
video ready (chunked upload + transcode can take minutes; the handler runs up to
|
|
43671
|
+
800 s).
|
|
43672
|
+
security:
|
|
43673
|
+
- bearerAuth: []
|
|
43674
|
+
requestBody:
|
|
43675
|
+
required: true
|
|
43676
|
+
content:
|
|
43677
|
+
application/json:
|
|
43678
|
+
schema:
|
|
43679
|
+
type: object
|
|
43680
|
+
required: [accountId, adAccountId]
|
|
43681
|
+
properties:
|
|
43682
|
+
accountId: { type: string, description: "Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token." }
|
|
43683
|
+
adAccountId: { type: string, description: "Meta ad account id (act_<n>)." }
|
|
43684
|
+
videoUrl: { type: string, description: "Public https URL of the video; downloaded server-side (SSRF-guarded) before chunked upload. Provide exactly one of videoUrl or videoBase64." }
|
|
43685
|
+
videoBase64: { type: string, description: "Raw base64 video bytes, or a full data URL (the data:video/...;base64, prefix is stripped). Capped by Vercel's body limit (~4.5 MB payload). Provide exactly one of videoUrl or videoBase64." }
|
|
43686
|
+
filename: { type: string, description: "Optional filename shown alongside the upload session. Applied only when uploading via videoBase64." }
|
|
43687
|
+
responses:
|
|
43688
|
+
'201':
|
|
43689
|
+
description: Video uploaded and ready
|
|
43690
|
+
content:
|
|
43691
|
+
application/json:
|
|
43692
|
+
schema:
|
|
43693
|
+
type: object
|
|
43694
|
+
properties:
|
|
43695
|
+
adAccountId: { type: string }
|
|
43696
|
+
video:
|
|
43697
|
+
type: object
|
|
43698
|
+
properties:
|
|
43699
|
+
id: { type: string, description: "Meta video id, reusable as video.id on POST /v1/ads/create and inside POST /v1/ads/preview creativeSpec." }
|
|
43700
|
+
thumbnailUrl: { type: [string, "null"], description: "Meta-hosted poster URL if available; null when Meta has not produced a poster yet." }
|
|
43701
|
+
'400': { description: "Invalid input, or Meta rejected the upload" }
|
|
43702
|
+
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
43703
|
+
'501': { description: Only supported on Meta (facebook/instagram) }
|
|
43704
|
+
'502': { description: "Meta accepted the request then failed to produce the media (upload session, chunk transfer, processing timeout, or a response with no video id). Inspect `platformError.reason`." }
|
|
43705
|
+
|
|
43643
43706
|
get:
|
|
43644
43707
|
x-resource-group: "ads"
|
|
43645
43708
|
operationId: listAdVideos
|
|
@@ -43656,7 +43719,7 @@ paths:
|
|
|
43656
43719
|
tool); videos we uploaded also come back as `creative.videoId` on GET /v1/ads.
|
|
43657
43720
|
|
|
43658
43721
|
Meta transcodes asynchronously, so a row is only usable once `status.video_status`
|
|
43659
|
-
reads `ready`.
|
|
43722
|
+
reads `ready`. Upload a new video via POST /v1/ads/videos, or inline via `video.url`
|
|
43660
43723
|
on POST /v1/ads/create.
|
|
43661
43724
|
security:
|
|
43662
43725
|
- bearerAuth: []
|
|
@@ -43686,6 +43749,41 @@ paths:
|
|
|
43686
43749
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
43687
43750
|
'501': { description: Only supported on Meta (facebook/instagram) }
|
|
43688
43751
|
|
|
43752
|
+
/v1/ads/videos/{videoId}:
|
|
43753
|
+
delete:
|
|
43754
|
+
x-resource-group: "ads"
|
|
43755
|
+
operationId: deleteAdVideo
|
|
43756
|
+
tags: ["Ad Creatives"]
|
|
43757
|
+
x-platforms: ["meta"]
|
|
43758
|
+
summary: Delete an ad video
|
|
43759
|
+
description: |-
|
|
43760
|
+
Removes a video from the ad account's video library. Meta's canonical
|
|
43761
|
+
`DELETE /{video_id}` fails with code 10 / subcode 1363055 for videos uploaded via
|
|
43762
|
+
`/act_X/advideos` even with `ads_management`; this endpoint uses the working
|
|
43763
|
+
account-scoped shape `DELETE /act_X/advideos?video_id=<id>` and returns Meta's
|
|
43764
|
+
`{success: true}` verbatim. Deleting a video that lives in a different ad account,
|
|
43765
|
+
or that Meta has already removed, returns Meta's error verbatim as a 4xx.
|
|
43766
|
+
security:
|
|
43767
|
+
- bearerAuth: []
|
|
43768
|
+
parameters:
|
|
43769
|
+
- { name: videoId, in: path, required: true, schema: { type: string }, description: "Meta ad video id (numeric)." }
|
|
43770
|
+
- { name: accountId, in: query, required: true, schema: { type: string }, description: "Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token." }
|
|
43771
|
+
- { name: adAccountId, in: query, required: true, schema: { type: string }, description: "Meta ad account id (act_<n>) that owns the video." }
|
|
43772
|
+
responses:
|
|
43773
|
+
'200':
|
|
43774
|
+
description: Video deleted
|
|
43775
|
+
content:
|
|
43776
|
+
application/json:
|
|
43777
|
+
schema:
|
|
43778
|
+
type: object
|
|
43779
|
+
properties:
|
|
43780
|
+
adAccountId: { type: string }
|
|
43781
|
+
videoId: { type: string }
|
|
43782
|
+
success: { type: boolean }
|
|
43783
|
+
'400': { $ref: '#/components/responses/BadRequest' }
|
|
43784
|
+
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
43785
|
+
'501': { description: Only supported on Meta (facebook/instagram) }
|
|
43786
|
+
|
|
43689
43787
|
/v1/ads/interests:
|
|
43690
43788
|
get:
|
|
43691
43789
|
x-resource-group: "ads"
|
|
@@ -57,6 +57,20 @@ describe 'AdCreativesApi' do
|
|
|
57
57
|
end
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
+
# unit tests for delete_ad_video
|
|
61
|
+
# Delete an ad video
|
|
62
|
+
# Removes a video from the ad account's video library. Meta's canonical `DELETE /{video_id}` fails with code 10 / subcode 1363055 for videos uploaded via `/act_X/advideos` even with `ads_management`; this endpoint uses the working account-scoped shape `DELETE /act_X/advideos?video_id=<id>` and returns Meta's `{success: true}` verbatim. Deleting a video that lives in a different ad account, or that Meta has already removed, returns Meta's error verbatim as a 4xx.
|
|
63
|
+
# @param video_id Meta ad video id (numeric).
|
|
64
|
+
# @param account_id Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.
|
|
65
|
+
# @param ad_account_id Meta ad account id (act_<n>) that owns the video.
|
|
66
|
+
# @param [Hash] opts the optional parameters
|
|
67
|
+
# @return [DeleteAdVideo200Response]
|
|
68
|
+
describe 'delete_ad_video test' do
|
|
69
|
+
it 'should work' do
|
|
70
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
|
|
60
74
|
# unit tests for generate_ad_previews
|
|
61
75
|
# Render pre-create ad previews
|
|
62
76
|
# Renders how a creative would look per placement BEFORE any ad exists, via Meta's `/generatepreviews`. Provide exactly one creative source: `existingCreativeId` or `creativeSpec`. Each preview is an HTML `<iframe>` snippet embeddable directly. Unknown `formats` values return Meta's 400 verbatim.
|
|
@@ -156,7 +170,7 @@ describe 'AdCreativesApi' do
|
|
|
156
170
|
|
|
157
171
|
# unit tests for list_ad_videos
|
|
158
172
|
# Ad video library
|
|
159
|
-
# Lists the ad account's video library (Meta's `/act_X/advideos`), rows returned verbatim. The default projection covers id, title, status, poster frames and length; `fields` is a raw-passthrough override. Any `id` here is reusable as `video.id` on the create endpoints, so N ads that differ only in copy share one upload. This is the only way to reach a video uploaded OUTSIDE Zernio (Ads Manager, another tool); videos we uploaded also come back as `creative.videoId` on GET /v1/ads. Meta transcodes asynchronously, so a row is only usable once `status.video_status` reads `ready`.
|
|
173
|
+
# Lists the ad account's video library (Meta's `/act_X/advideos`), rows returned verbatim. The default projection covers id, title, status, poster frames and length; `fields` is a raw-passthrough override. Any `id` here is reusable as `video.id` on the create endpoints, so N ads that differ only in copy share one upload. This is the only way to reach a video uploaded OUTSIDE Zernio (Ads Manager, another tool); videos we uploaded also come back as `creative.videoId` on GET /v1/ads. Meta transcodes asynchronously, so a row is only usable once `status.video_status` reads `ready`. Upload a new video via POST /v1/ads/videos, or inline via `video.url` on POST /v1/ads/create.
|
|
160
174
|
# @param account_id Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.
|
|
161
175
|
# @param ad_account_id Meta ad account id (act_<n>).
|
|
162
176
|
# @param [Hash] opts the optional parameters
|
|
@@ -195,4 +209,16 @@ describe 'AdCreativesApi' do
|
|
|
195
209
|
end
|
|
196
210
|
end
|
|
197
211
|
|
|
212
|
+
# unit tests for upload_ad_video
|
|
213
|
+
# Upload an ad video
|
|
214
|
+
# Standalone ad-video upload (parallel to POST /v1/ads/images), so a video creative can be rendered via POST /v1/ads/preview or attached via `video.id` on POST /v1/ads/create before an ad exists. Accepts either an https `videoUrl` we download server-side (SSRF-guarded) or raw `videoBase64` bytes; exactly one is required. `videoBase64` is capped by Vercel's body limit — around 4.5 MB payload in practice, so larger videos must come via `videoUrl`. Returns the Meta `video.id` (reusable wherever `video.id` is accepted) plus Meta's auto-generated poster URL when available. The endpoint waits until Meta reports the video ready (chunked upload + transcode can take minutes; the handler runs up to 800 s).
|
|
215
|
+
# @param upload_ad_video_request
|
|
216
|
+
# @param [Hash] opts the optional parameters
|
|
217
|
+
# @return [UploadAdVideo201Response]
|
|
218
|
+
describe 'upload_ad_video test' do
|
|
219
|
+
it 'should work' do
|
|
220
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
221
|
+
end
|
|
222
|
+
end
|
|
223
|
+
|
|
198
224
|
end
|
|
@@ -62,7 +62,7 @@ describe 'CommentsApi' do
|
|
|
62
62
|
|
|
63
63
|
# unit tests for get_inbox_post_comments
|
|
64
64
|
# Get post comments
|
|
65
|
-
# Fetch comments for a specific post. Requires accountId query parameter. On Facebook and Instagram, passing a COMMENT id as `postId` is also supported and returns that comment's replies instead of the post's top-level comments. This is not available on YouTube, where `postId` must be a video id.
|
|
65
|
+
# Fetch comments for a specific post. Requires accountId query parameter. On Facebook and Instagram, passing a COMMENT id as `postId` is also supported and returns that comment's replies instead of the post's top-level comments. This is not available on YouTube, where `postId` must be a video id. Responses are cached for up to 10 minutes, so a page may lag new comments by that window. Do not poll this endpoint for real-time updates: subscribe to the `comment.received` webhook, which delivers new comments as they arrive. Your own writes (creating, replying to, or deleting a comment) refresh the cache immediately.
|
|
66
66
|
# @param post_id Zernio post ID or platform-specific post ID. Zernio IDs are auto-resolved. LinkedIn third-party posts accept full activity URN or numeric ID. On Facebook and Instagram, a comment ID is also accepted here and returns that comment's replies.
|
|
67
67
|
# @param account_id
|
|
68
68
|
# @param [Hash] opts the optional parameters
|
|
@@ -120,7 +120,7 @@ describe 'CommentsApi' do
|
|
|
120
120
|
|
|
121
121
|
# unit tests for list_inbox_comments
|
|
122
122
|
# List commented posts
|
|
123
|
-
# Returns posts with comment counts from all connected accounts. Aggregates data across multiple accounts. For users with the Ads add-on (Metronome plans always qualify), the user's Meta ads (boosted/dark posts) are included too. There's one row per (ad, placement-with-comments): an ad that runs on both Facebook feed and Instagram feed produces up to two rows (the Page dark post and the IG media have separate comment threads), each flagged `isAd: true` with `adId` and `placement` (`id` is `{adId}:{placement}`). Use `?platform=metaads` to return *only* ad rows; passing `facebook`/`instagram` returns *organic* posts only (no ads); omitting `platform` returns both. Fetch a row's thread from GET /v1/ads/{adId}/comments?placement={placement}. Ad comment counts are read with the Marketing API token (Facebook side) or the connected Instagram account's token (Instagram side); a row whose count can't be read is omitted. Pagination walks each account's platform listing. Following `nextCursor` reaches past the first page on Facebook, Instagram, Threads, LinkedIn and YouTube, since they are the platforms that support a server-side date window; on the others the listing stops at its first page. Cursor pagination is only coherent for the default sort (`sortBy=date`, `sortOrder=desc`): with `sortOrder=asc`, or with `sortBy=comments`, the cursor filter does not match the sort order and the second page is unreliable. `nextCursor` is opaque: pass it back verbatim, never construct or parse it, its composition may change without notice. Because each page re-queries a live window, results can still shift between requests, so dedupe by `id` on the client. `commentCount` semantics differ by platform: YouTube's includes replies, Facebook's counts top-level comments only.
|
|
123
|
+
# Returns posts with comment counts from all connected accounts. Aggregates data across multiple accounts. Responses are cached for up to 10 minutes, so the feed may lag new comments by that window. Do not poll this endpoint for real-time updates: subscribe to the `comment.received` webhook, which fires for every new comment across your posts and carries the post reference needed to keep this list current. For users with the Ads add-on (Metronome plans always qualify), the user's Meta ads (boosted/dark posts) are included too. There's one row per (ad, placement-with-comments): an ad that runs on both Facebook feed and Instagram feed produces up to two rows (the Page dark post and the IG media have separate comment threads), each flagged `isAd: true` with `adId` and `placement` (`id` is `{adId}:{placement}`). Use `?platform=metaads` to return *only* ad rows; passing `facebook`/`instagram` returns *organic* posts only (no ads); omitting `platform` returns both. Fetch a row's thread from GET /v1/ads/{adId}/comments?placement={placement}. Ad comment counts are read with the Marketing API token (Facebook side) or the connected Instagram account's token (Instagram side); a row whose count can't be read is omitted. Pagination walks each account's platform listing. Following `nextCursor` reaches past the first page on Facebook, Instagram, Threads, LinkedIn and YouTube, since they are the platforms that support a server-side date window; on the others the listing stops at its first page. Cursor pagination is only coherent for the default sort (`sortBy=date`, `sortOrder=desc`): with `sortOrder=asc`, or with `sortBy=comments`, the cursor filter does not match the sort order and the second page is unreliable. `nextCursor` is opaque: pass it back verbatim, never construct or parse it, its composition may change without notice. Because each page re-queries a live window, results can still shift between requests, so dedupe by `id` on the client. `commentCount` semantics differ by platform: YouTube's includes replies, Facebook's counts top-level comments only.
|
|
124
124
|
# @param [Hash] opts the optional parameters
|
|
125
125
|
# @option opts [String] :profile_id Filter by profile ID
|
|
126
126
|
# @option opts [String] :platform Filter by platform. `metaads` is a synthetic value meaning the user's ads (boosted/dark posts) only; `facebook`/`instagram` return organic posts only.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.4
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Zernio::DeleteAdVideo200Response
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::DeleteAdVideo200Response do
|
|
21
|
+
#let(:instance) { Zernio::DeleteAdVideo200Response.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of DeleteAdVideo200Response' do
|
|
24
|
+
it 'should create an instance of DeleteAdVideo200Response' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::DeleteAdVideo200Response)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "ad_account_id"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "video_id"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "success"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.4
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Zernio::UploadAdVideo201Response
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::UploadAdVideo201Response do
|
|
21
|
+
#let(:instance) { Zernio::UploadAdVideo201Response.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of UploadAdVideo201Response' do
|
|
24
|
+
it 'should create an instance of UploadAdVideo201Response' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::UploadAdVideo201Response)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "ad_account_id"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "video"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.4
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Zernio::UploadAdVideo201ResponseVideo
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::UploadAdVideo201ResponseVideo do
|
|
21
|
+
#let(:instance) { Zernio::UploadAdVideo201ResponseVideo.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of UploadAdVideo201ResponseVideo' do
|
|
24
|
+
it 'should create an instance of UploadAdVideo201ResponseVideo' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::UploadAdVideo201ResponseVideo)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "id"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "thumbnail_url"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
end
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.4
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Zernio::UploadAdVideoRequest
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::UploadAdVideoRequest do
|
|
21
|
+
#let(:instance) { Zernio::UploadAdVideoRequest.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of UploadAdVideoRequest' do
|
|
24
|
+
it 'should create an instance of UploadAdVideoRequest' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::UploadAdVideoRequest)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "account_id"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "ad_account_id"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "video_url"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "video_base64"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
describe 'test attribute "filename"' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
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.741
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
@@ -441,6 +441,7 @@ files:
|
|
|
441
441
|
- docs/DeleteAdCampaign200Response.md
|
|
442
442
|
- docs/DeleteAdCampaignRequest.md
|
|
443
443
|
- docs/DeleteAdCreative200Response.md
|
|
444
|
+
- docs/DeleteAdVideo200Response.md
|
|
444
445
|
- docs/DeleteDiscordScheduledEvent200Response.md
|
|
445
446
|
- docs/DeleteGoogleBusinessMedia200Response.md
|
|
446
447
|
- docs/DeleteGoogleBusinessPlaceAction200Response.md
|
|
@@ -1617,6 +1618,9 @@ files:
|
|
|
1617
1618
|
- docs/UploadAdImage201Response.md
|
|
1618
1619
|
- docs/UploadAdImage201ResponseImage.md
|
|
1619
1620
|
- docs/UploadAdImageRequest.md
|
|
1621
|
+
- docs/UploadAdVideo201Response.md
|
|
1622
|
+
- docs/UploadAdVideo201ResponseVideo.md
|
|
1623
|
+
- docs/UploadAdVideoRequest.md
|
|
1620
1624
|
- docs/UploadMediaDirect200Response.md
|
|
1621
1625
|
- docs/UploadPhoneNumberKycDocument200Response.md
|
|
1622
1626
|
- docs/UploadPhoneNumberPortInDocument200Response.md
|
|
@@ -2263,6 +2267,7 @@ files:
|
|
|
2263
2267
|
- lib/zernio-sdk/models/delete_ad_campaign200_response.rb
|
|
2264
2268
|
- lib/zernio-sdk/models/delete_ad_campaign_request.rb
|
|
2265
2269
|
- lib/zernio-sdk/models/delete_ad_creative200_response.rb
|
|
2270
|
+
- lib/zernio-sdk/models/delete_ad_video200_response.rb
|
|
2266
2271
|
- lib/zernio-sdk/models/delete_discord_scheduled_event200_response.rb
|
|
2267
2272
|
- lib/zernio-sdk/models/delete_google_business_media200_response.rb
|
|
2268
2273
|
- lib/zernio-sdk/models/delete_google_business_place_action200_response.rb
|
|
@@ -3408,6 +3413,9 @@ files:
|
|
|
3408
3413
|
- lib/zernio-sdk/models/upload_ad_image201_response.rb
|
|
3409
3414
|
- lib/zernio-sdk/models/upload_ad_image201_response_image.rb
|
|
3410
3415
|
- lib/zernio-sdk/models/upload_ad_image_request.rb
|
|
3416
|
+
- lib/zernio-sdk/models/upload_ad_video201_response.rb
|
|
3417
|
+
- lib/zernio-sdk/models/upload_ad_video201_response_video.rb
|
|
3418
|
+
- lib/zernio-sdk/models/upload_ad_video_request.rb
|
|
3411
3419
|
- lib/zernio-sdk/models/upload_media_direct200_response.rb
|
|
3412
3420
|
- lib/zernio-sdk/models/upload_phone_number_kyc_document200_response.rb
|
|
3413
3421
|
- lib/zernio-sdk/models/upload_phone_number_port_in_document200_response.rb
|
|
@@ -4034,6 +4042,7 @@ files:
|
|
|
4034
4042
|
- spec/models/delete_ad_campaign200_response_spec.rb
|
|
4035
4043
|
- spec/models/delete_ad_campaign_request_spec.rb
|
|
4036
4044
|
- spec/models/delete_ad_creative200_response_spec.rb
|
|
4045
|
+
- spec/models/delete_ad_video200_response_spec.rb
|
|
4037
4046
|
- spec/models/delete_discord_scheduled_event200_response_spec.rb
|
|
4038
4047
|
- spec/models/delete_google_business_media200_response_spec.rb
|
|
4039
4048
|
- spec/models/delete_google_business_place_action200_response_spec.rb
|
|
@@ -5179,6 +5188,9 @@ files:
|
|
|
5179
5188
|
- spec/models/upload_ad_image201_response_image_spec.rb
|
|
5180
5189
|
- spec/models/upload_ad_image201_response_spec.rb
|
|
5181
5190
|
- spec/models/upload_ad_image_request_spec.rb
|
|
5191
|
+
- spec/models/upload_ad_video201_response_spec.rb
|
|
5192
|
+
- spec/models/upload_ad_video201_response_video_spec.rb
|
|
5193
|
+
- spec/models/upload_ad_video_request_spec.rb
|
|
5182
5194
|
- spec/models/upload_media_direct200_response_spec.rb
|
|
5183
5195
|
- spec/models/upload_phone_number_kyc_document200_response_spec.rb
|
|
5184
5196
|
- spec/models/upload_phone_number_port_in_document200_response_spec.rb
|
|
@@ -5386,7 +5398,7 @@ files:
|
|
|
5386
5398
|
- spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
|
|
5387
5399
|
- spec/models/you_tube_video_retention_response_spec.rb
|
|
5388
5400
|
- spec/spec_helper.rb
|
|
5389
|
-
- zernio-sdk-0.0.
|
|
5401
|
+
- zernio-sdk-0.0.741.gem
|
|
5390
5402
|
- zernio-sdk.gemspec
|
|
5391
5403
|
homepage: https://openapi-generator.tech
|
|
5392
5404
|
licenses:
|
|
@@ -5687,6 +5699,7 @@ test_files:
|
|
|
5687
5699
|
- spec/models/call_record_transcript_inner_spec.rb
|
|
5688
5700
|
- spec/models/list_pinterest_boards_for_selection200_response_spec.rb
|
|
5689
5701
|
- spec/models/create_discord_scheduled_event_request_entity_one_of_spec.rb
|
|
5702
|
+
- spec/models/upload_ad_video201_response_spec.rb
|
|
5690
5703
|
- spec/models/get_whats_app_blocked_users200_response_spec.rb
|
|
5691
5704
|
- spec/models/generate_ad_previews200_response_previews_inner_spec.rb
|
|
5692
5705
|
- spec/models/update_ad_tracking_tags_request_creative_spec.rb
|
|
@@ -6117,6 +6130,7 @@ test_files:
|
|
|
6117
6130
|
- spec/models/send_inbox_message200_response_spec.rb
|
|
6118
6131
|
- spec/models/webhook_payload_whats_app_template_status_updated_spec.rb
|
|
6119
6132
|
- spec/models/adjust_conversions_request_adjustments_inner_user_spec.rb
|
|
6133
|
+
- spec/models/upload_ad_video201_response_video_spec.rb
|
|
6120
6134
|
- spec/models/list_whats_app_calls200_response_spec.rb
|
|
6121
6135
|
- spec/models/ctwa_single_response_spec.rb
|
|
6122
6136
|
- spec/models/ad_tree_ad_set_ad_set_budget_spec.rb
|
|
@@ -6164,6 +6178,7 @@ test_files:
|
|
|
6164
6178
|
- spec/models/webhook_payload_whats_app_template_category_updated_template_spec.rb
|
|
6165
6179
|
- spec/models/x_article_block_data_spec.rb
|
|
6166
6180
|
- spec/models/on_verification_approved_request_verification_spec.rb
|
|
6181
|
+
- spec/models/delete_ad_video200_response_spec.rb
|
|
6167
6182
|
- spec/models/create_broadcast_request_template_variable_mapping_value_spec.rb
|
|
6168
6183
|
- spec/models/add_tracking_tag_shared_account201_response_spec.rb
|
|
6169
6184
|
- spec/models/edit_inbox_message_request_reply_markup_keyboard_inner_inner_spec.rb
|
|
@@ -6462,6 +6477,7 @@ test_files:
|
|
|
6462
6477
|
- spec/models/get_inbox_top_accounts200_response_spec.rb
|
|
6463
6478
|
- spec/models/analytics_list_response_spec.rb
|
|
6464
6479
|
- spec/models/replace_ad_audience_companies_request_spec.rb
|
|
6480
|
+
- spec/models/upload_ad_video_request_spec.rb
|
|
6465
6481
|
- spec/models/create_custom_conversion_request_spec.rb
|
|
6466
6482
|
- spec/models/reply_to_phone_number_reviewer_request_spec.rb
|
|
6467
6483
|
- spec/models/list_snapchat_profiles200_response_public_profiles_inner_spec.rb
|
data/zernio-sdk-0.0.739.gem
DELETED
|
Binary file
|