late-sdk 0.0.696 → 0.0.698
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 +8 -0
- data/docs/ConnectApi.md +157 -3
- data/docs/ListInstagramPages200Response.md +18 -0
- data/docs/ListInstagramPages200ResponsePagesInner.md +24 -0
- data/docs/ListInstagramPages200ResponsePagesInnerInstagramBusinessAccount.md +22 -0
- data/docs/SelectInstagramAccount200Response.md +22 -0
- data/docs/SelectInstagramAccount200ResponseAccount.md +30 -0
- data/docs/SelectInstagramAccountRequest.md +24 -0
- data/docs/WhatsAppPhoneNumbersApi.md +1 -1
- data/lib/zernio-sdk/api/connect_api.rb +148 -2
- data/lib/zernio-sdk/api/whats_app_phone_numbers_api.rb +2 -2
- data/lib/zernio-sdk/models/list_instagram_pages200_response.rb +149 -0
- data/lib/zernio-sdk/models/list_instagram_pages200_response_pages_inner.rb +177 -0
- data/lib/zernio-sdk/models/list_instagram_pages200_response_pages_inner_instagram_business_account.rb +167 -0
- data/lib/zernio-sdk/models/select_instagram_account200_response.rb +166 -0
- data/lib/zernio-sdk/models/select_instagram_account200_response_account.rb +249 -0
- data/lib/zernio-sdk/models/select_instagram_account_request.rb +229 -0
- data/lib/zernio-sdk/version.rb +1 -1
- data/lib/zernio-sdk.rb +6 -0
- data/openapi.yaml +155 -4
- data/spec/api/connect_api_spec.rb +27 -1
- data/spec/api/whats_app_phone_numbers_api_spec.rb +1 -1
- data/spec/models/list_instagram_pages200_response_pages_inner_instagram_business_account_spec.rb +48 -0
- data/spec/models/list_instagram_pages200_response_pages_inner_spec.rb +54 -0
- data/spec/models/list_instagram_pages200_response_spec.rb +36 -0
- data/spec/models/select_instagram_account200_response_account_spec.rb +80 -0
- data/spec/models/select_instagram_account200_response_spec.rb +48 -0
- data/spec/models/select_instagram_account_request_spec.rb +54 -0
- data/zernio-sdk-0.0.698.gem +0 -0
- metadata +27 -3
- data/zernio-sdk-0.0.696.gem +0 -0
data/openapi.yaml
CHANGED
|
@@ -15696,7 +15696,7 @@ paths:
|
|
|
15696
15696
|
in: query
|
|
15697
15697
|
required: true
|
|
15698
15698
|
schema: { type: string }
|
|
15699
|
-
description: Your Zernio profile ID (get from /v1/profiles)
|
|
15699
|
+
description: 'Your Zernio profile ID (get from /v1/profiles). For WhatsApp, a Zernio-provisioned number can only be connected on the profile it was provisioned to; connecting from any other profile is rejected with a 409.'
|
|
15700
15700
|
- name: redirect_url
|
|
15701
15701
|
in: query
|
|
15702
15702
|
schema: { type: string, format: uri }
|
|
@@ -15705,6 +15705,17 @@ paths:
|
|
|
15705
15705
|
in: query
|
|
15706
15706
|
schema: { type: boolean, default: false }
|
|
15707
15707
|
description: When true, the user is redirected to your redirect_url with raw OAuth data (code, state) instead of Zernio's default account selection UI. Use this to build a custom connect experience.
|
|
15708
|
+
- name: loginMethod
|
|
15709
|
+
in: query
|
|
15710
|
+
schema: { type: string, enum: [instagram_login, facebook_login], default: instagram_login }
|
|
15711
|
+
description: |
|
|
15712
|
+
Instagram only. Which of the two Instagram connection methods to use. Ignored for every other platform.
|
|
15713
|
+
|
|
15714
|
+
`instagram_login` (the default, and what you get if you omit this): the Instagram Login dialog. The user authorizes their Instagram professional account directly, no Facebook Page required.
|
|
15715
|
+
|
|
15716
|
+
`facebook_login`: the Facebook Login dialog, i.e. "Instagram API with Facebook Login". The user authorizes a Facebook Page that has a linked Instagram professional account, and every API call for that account then runs through the Page. Use this when the customer manages Instagram through a Page and expects the Facebook consent screen. Because the user has to pick which Page to connect, the callback continues at the account-selection step, `/v1/connect/instagram/select-account`.
|
|
15717
|
+
|
|
15718
|
+
`facebook_login` does not support `headless=true`: its callback always redirects to Zernio's hosted account-selection page. Pass a `redirect_url` and let the standard flow return the user to you.
|
|
15708
15719
|
security:
|
|
15709
15720
|
- bearerAuth: []
|
|
15710
15721
|
responses:
|
|
@@ -16135,6 +16146,142 @@ paths:
|
|
|
16135
16146
|
'500':
|
|
16136
16147
|
description: Failed to save Facebook connection
|
|
16137
16148
|
|
|
16149
|
+
/v1/connect/instagram/select-account:
|
|
16150
|
+
get:
|
|
16151
|
+
operationId: listInstagramPages
|
|
16152
|
+
tags: [Connect]
|
|
16153
|
+
summary: List Pages with a linked Instagram account
|
|
16154
|
+
description: |
|
|
16155
|
+
Completes the `loginMethod=facebook_login` Instagram flow, i.e. "Instagram API with Facebook Login".
|
|
16156
|
+
|
|
16157
|
+
After the user authorizes on Facebook, extract `tempToken` from the redirect params and pass it here to list the Facebook Pages they manage. Only Pages that have a linked Instagram professional account are returned, so an empty array means the user has no eligible Page. Use the X-Connect-Token header if connecting via API key.
|
|
16158
|
+
|
|
16159
|
+
Not used by the default `instagram_login` flow, which creates the account without a selection step.
|
|
16160
|
+
parameters:
|
|
16161
|
+
- name: profileId
|
|
16162
|
+
in: query
|
|
16163
|
+
required: true
|
|
16164
|
+
schema: { type: string }
|
|
16165
|
+
description: Profile ID from your connection flow
|
|
16166
|
+
- name: tempToken
|
|
16167
|
+
in: query
|
|
16168
|
+
required: true
|
|
16169
|
+
schema: { type: string }
|
|
16170
|
+
description: Long-lived Facebook user access token from the OAuth callback redirect
|
|
16171
|
+
security:
|
|
16172
|
+
- bearerAuth: []
|
|
16173
|
+
- connectToken: []
|
|
16174
|
+
responses:
|
|
16175
|
+
'200':
|
|
16176
|
+
description: Facebook Pages that have a linked Instagram professional account
|
|
16177
|
+
content:
|
|
16178
|
+
application/json:
|
|
16179
|
+
schema:
|
|
16180
|
+
type: object
|
|
16181
|
+
properties:
|
|
16182
|
+
pages:
|
|
16183
|
+
type: array
|
|
16184
|
+
items:
|
|
16185
|
+
type: object
|
|
16186
|
+
properties:
|
|
16187
|
+
id: { type: string, description: Facebook Page ID }
|
|
16188
|
+
name: { type: string, description: Page name }
|
|
16189
|
+
access_token: { type: string, description: Page-specific access token }
|
|
16190
|
+
instagram_business_account:
|
|
16191
|
+
type: object
|
|
16192
|
+
description: The Instagram professional account linked to this Page
|
|
16193
|
+
properties:
|
|
16194
|
+
id: { type: string, description: Instagram Business Account ID }
|
|
16195
|
+
username: { type: string }
|
|
16196
|
+
profile_picture_url: { type: string }
|
|
16197
|
+
example:
|
|
16198
|
+
pages:
|
|
16199
|
+
- id: "811889972008357"
|
|
16200
|
+
name: "My Brand Page"
|
|
16201
|
+
access_token: "EAAxxxxx..."
|
|
16202
|
+
instagram_business_account:
|
|
16203
|
+
id: "17841400649984407"
|
|
16204
|
+
username: "mybrand"
|
|
16205
|
+
profile_picture_url: "https://..."
|
|
16206
|
+
'400': { description: 'Missing required parameters (profileId or tempToken)' }
|
|
16207
|
+
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
16208
|
+
'403': { description: User does not have access to the specified profile }
|
|
16209
|
+
post:
|
|
16210
|
+
operationId: selectInstagramAccount
|
|
16211
|
+
tags: [Connect]
|
|
16212
|
+
summary: Select the Page whose Instagram account to connect
|
|
16213
|
+
description: |
|
|
16214
|
+
Saves the selected Page as an Instagram account connected via Facebook Login. The Page access token becomes the account's access token, so every Instagram call for it runs against the Facebook Graph host.
|
|
16215
|
+
|
|
16216
|
+
One Instagram account per profile: if the profile already has an Instagram account, this replaces it, and picking a different Instagram identity purges the previous account's conversations, external posts and stats.
|
|
16217
|
+
requestBody:
|
|
16218
|
+
required: true
|
|
16219
|
+
content:
|
|
16220
|
+
application/json:
|
|
16221
|
+
schema:
|
|
16222
|
+
type: object
|
|
16223
|
+
required: [profileId, pageId, tempToken]
|
|
16224
|
+
properties:
|
|
16225
|
+
profileId:
|
|
16226
|
+
type: string
|
|
16227
|
+
description: Profile ID from your connection flow
|
|
16228
|
+
pageId:
|
|
16229
|
+
type: string
|
|
16230
|
+
description: 'The Facebook Page ID selected by the user, from GET /v1/connect/instagram/select-account'
|
|
16231
|
+
tempToken:
|
|
16232
|
+
type: string
|
|
16233
|
+
description: Long-lived Facebook user access token from the OAuth callback redirect
|
|
16234
|
+
redirect_url:
|
|
16235
|
+
type: string
|
|
16236
|
+
format: uri
|
|
16237
|
+
description: Optional custom redirect URL to return to after selection
|
|
16238
|
+
example:
|
|
16239
|
+
profileId: "507f1f77bcf86cd799439011"
|
|
16240
|
+
pageId: "811889972008357"
|
|
16241
|
+
tempToken: "EAAxxxxx..."
|
|
16242
|
+
redirect_url: "https://yourdomain.com/integrations/callback"
|
|
16243
|
+
security:
|
|
16244
|
+
- bearerAuth: []
|
|
16245
|
+
- connectToken: []
|
|
16246
|
+
responses:
|
|
16247
|
+
'200':
|
|
16248
|
+
description: Instagram account connected
|
|
16249
|
+
content:
|
|
16250
|
+
application/json:
|
|
16251
|
+
schema:
|
|
16252
|
+
type: object
|
|
16253
|
+
properties:
|
|
16254
|
+
message: { type: string }
|
|
16255
|
+
redirect_url:
|
|
16256
|
+
type: string
|
|
16257
|
+
description: Redirect URL if a custom redirect_url was provided
|
|
16258
|
+
account:
|
|
16259
|
+
type: object
|
|
16260
|
+
properties:
|
|
16261
|
+
accountId: { type: string, description: ID of the created SocialAccount }
|
|
16262
|
+
platform: { type: string, enum: [instagram] }
|
|
16263
|
+
username: { type: string }
|
|
16264
|
+
displayName: { type: string, description: Name of the Facebook Page backing this account }
|
|
16265
|
+
profilePicture: { type: string }
|
|
16266
|
+
isActive: { type: boolean }
|
|
16267
|
+
loginMethod: { type: string, enum: [facebook_login] }
|
|
16268
|
+
example:
|
|
16269
|
+
message: "Instagram (via Facebook) connected"
|
|
16270
|
+
account:
|
|
16271
|
+
accountId: "64e1f0a9e2b5af0012ab34cd"
|
|
16272
|
+
platform: "instagram"
|
|
16273
|
+
username: "mybrand"
|
|
16274
|
+
displayName: "My Brand Page"
|
|
16275
|
+
profilePicture: "https://..."
|
|
16276
|
+
isActive: true
|
|
16277
|
+
loginMethod: "facebook_login"
|
|
16278
|
+
'400':
|
|
16279
|
+
description: 'Missing required fields, or the selected Page has no linked Instagram professional account'
|
|
16280
|
+
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
16281
|
+
'402': { $ref: '#/components/responses/PaymentRequired' }
|
|
16282
|
+
'403': { description: User does not have access to the specified profile }
|
|
16283
|
+
'404': { description: Selected page not found among the pages this token can manage }
|
|
16284
|
+
|
|
16138
16285
|
/v1/connect/googlebusiness/locations:
|
|
16139
16286
|
get:
|
|
16140
16287
|
x-resource-group: "accounts"
|
|
@@ -19190,6 +19337,8 @@ paths:
|
|
|
19190
19337
|
description: Invalid or expired access token
|
|
19191
19338
|
'403':
|
|
19192
19339
|
description: Profile limit exceeded for this plan
|
|
19340
|
+
'409':
|
|
19341
|
+
description: 'The phone number is a Zernio-provisioned number pinned to a different profile. Connect it from that profile, or move it first with PATCH /v1/whatsapp/phone-numbers/{id}/profile.'
|
|
19193
19342
|
|
|
19194
19343
|
/v1/connect/whatsapp/select-phone-number:
|
|
19195
19344
|
get:
|
|
@@ -19345,6 +19494,8 @@ paths:
|
|
|
19345
19494
|
content:
|
|
19346
19495
|
application/json:
|
|
19347
19496
|
schema: { $ref: '#/components/schemas/ErrorResponse' }
|
|
19497
|
+
'409':
|
|
19498
|
+
description: 'The phone number is a Zernio-provisioned number pinned to a different profile. Connect it from that profile, or move it first with PATCH /v1/whatsapp/phone-numbers/{id}/profile.'
|
|
19348
19499
|
'500':
|
|
19349
19500
|
description: Failed to bind phone number
|
|
19350
19501
|
content:
|
|
@@ -32289,9 +32440,9 @@ paths:
|
|
|
32289
32440
|
Use this instead of `PATCH /v1/accounts/{accountId}`: that one moves the
|
|
32290
32441
|
social account only and leaves the number itself pinned to its original
|
|
32291
32442
|
profile, which splits the number across two profiles. Connecting a
|
|
32292
|
-
provisioned number
|
|
32293
|
-
`
|
|
32294
|
-
|
|
32443
|
+
Zernio-provisioned number from any profile but its own is rejected with a
|
|
32444
|
+
`409` (`WHATSAPP_NUMBER_PINNED_TO_PROFILE`). This endpoint is how you
|
|
32445
|
+
re-home the number first, so it can then be connected from the new profile.
|
|
32295
32446
|
|
|
32296
32447
|
`id` is the number record id from `GET /v1/phone-numbers`, not an account id.
|
|
32297
32448
|
|
|
@@ -154,10 +154,11 @@ describe 'ConnectApi' do
|
|
|
154
154
|
# Get OAuth connect URL
|
|
155
155
|
# Initiate an OAuth connection flow. Returns an authUrl to redirect the user to. Standard flow: Zernio hosts the selection UI, then redirects to your redirect_url. Headless mode (headless=true): user is redirected to your redirect_url with OAuth data for custom UI. Use the platform-specific selection endpoints to complete.
|
|
156
156
|
# @param platform Social media platform to connect
|
|
157
|
-
# @param profile_id Your Zernio profile ID (get from /v1/profiles)
|
|
157
|
+
# @param profile_id Your Zernio profile ID (get from /v1/profiles). For WhatsApp, a Zernio-provisioned number can only be connected on the profile it was provisioned to; connecting from any other profile is rejected with a 409.
|
|
158
158
|
# @param [Hash] opts the optional parameters
|
|
159
159
|
# @option opts [String] :redirect_url Your custom redirect URL after connection completes. Accepts an http(s) URL, a custom app scheme for mobile deeplinks (e.g. myapp://callback), or a relative path. Result params are appended with the URL API, so an existing query string is preserved. Standard mode appends connected={platform}&profileId=X&accountId=Y&username=Z. Headless mode appends OAuth data params for platforms requiring selection (e.g. LinkedIn orgs, Facebook pages). If no selection is needed, the account is created directly and the redirect includes accountId.
|
|
160
160
|
# @option opts [Boolean] :headless When true, the user is redirected to your redirect_url with raw OAuth data (code, state) instead of Zernio's default account selection UI. Use this to build a custom connect experience.
|
|
161
|
+
# @option opts [String] :login_method Instagram only. Which of the two Instagram connection methods to use. Ignored for every other platform. `instagram_login` (the default, and what you get if you omit this): the Instagram Login dialog. The user authorizes their Instagram professional account directly, no Facebook Page required. `facebook_login`: the Facebook Login dialog, i.e. \"Instagram API with Facebook Login\". The user authorizes a Facebook Page that has a linked Instagram professional account, and every API call for that account then runs through the Page. Use this when the customer manages Instagram through a Page and expects the Facebook consent screen. Because the user has to pick which Page to connect, the callback continues at the account-selection step, `/v1/connect/instagram/select-account`. `facebook_login` does not support `headless=true`: its callback always redirects to Zernio's hosted account-selection page. Pass a `redirect_url` and let the standard flow return the user to you.
|
|
161
162
|
# @return [GetConnectUrl200Response]
|
|
162
163
|
describe 'get_connect_url test' do
|
|
163
164
|
it 'should work' do
|
|
@@ -345,6 +346,19 @@ describe 'ConnectApi' do
|
|
|
345
346
|
end
|
|
346
347
|
end
|
|
347
348
|
|
|
349
|
+
# unit tests for list_instagram_pages
|
|
350
|
+
# List Pages with a linked Instagram account
|
|
351
|
+
# Completes the `loginMethod=facebook_login` Instagram flow, i.e. \"Instagram API with Facebook Login\". After the user authorizes on Facebook, extract `tempToken` from the redirect params and pass it here to list the Facebook Pages they manage. Only Pages that have a linked Instagram professional account are returned, so an empty array means the user has no eligible Page. Use the X-Connect-Token header if connecting via API key. Not used by the default `instagram_login` flow, which creates the account without a selection step.
|
|
352
|
+
# @param profile_id Profile ID from your connection flow
|
|
353
|
+
# @param temp_token Long-lived Facebook user access token from the OAuth callback redirect
|
|
354
|
+
# @param [Hash] opts the optional parameters
|
|
355
|
+
# @return [ListInstagramPages200Response]
|
|
356
|
+
describe 'list_instagram_pages test' do
|
|
357
|
+
it 'should work' do
|
|
358
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
359
|
+
end
|
|
360
|
+
end
|
|
361
|
+
|
|
348
362
|
# unit tests for list_linked_in_organizations
|
|
349
363
|
# List LinkedIn orgs
|
|
350
364
|
# Fetch full LinkedIn organization details (logos, vanity names, websites) for custom UI. No authentication required, just the tempToken from OAuth.
|
|
@@ -424,6 +438,18 @@ describe 'ConnectApi' do
|
|
|
424
438
|
end
|
|
425
439
|
end
|
|
426
440
|
|
|
441
|
+
# unit tests for select_instagram_account
|
|
442
|
+
# Select the Page whose Instagram account to connect
|
|
443
|
+
# Saves the selected Page as an Instagram account connected via Facebook Login. The Page access token becomes the account's access token, so every Instagram call for it runs against the Facebook Graph host. One Instagram account per profile: if the profile already has an Instagram account, this replaces it, and picking a different Instagram identity purges the previous account's conversations, external posts and stats.
|
|
444
|
+
# @param select_instagram_account_request
|
|
445
|
+
# @param [Hash] opts the optional parameters
|
|
446
|
+
# @return [SelectInstagramAccount200Response]
|
|
447
|
+
describe 'select_instagram_account test' do
|
|
448
|
+
it 'should work' do
|
|
449
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
450
|
+
end
|
|
451
|
+
end
|
|
452
|
+
|
|
427
453
|
# unit tests for select_linked_in_organization
|
|
428
454
|
# Select LinkedIn org
|
|
429
455
|
# Complete the LinkedIn connection flow. Set accountType to \"personal\" or \"organization\" to connect as a company page. Use X-Connect-Token if connecting via API key.
|
|
@@ -133,7 +133,7 @@ describe 'WhatsAppPhoneNumbersApi' do
|
|
|
133
133
|
|
|
134
134
|
# unit tests for move_whats_app_number_to_profile
|
|
135
135
|
# Move a number to another profile
|
|
136
|
-
# Move a provisioned number to a different profile. A number is not a single record. Alongside the number itself there are hidden telephony owner accounts (platform `phone`, plus `sms` when SMS is enabled) and, once WhatsApp is connected, the `whatsapp` account. They all carry a profileId and this endpoint moves them together. Use this instead of `PATCH /v1/accounts/{accountId}`: that one moves the social account only and leaves the number itself pinned to its original profile, which splits the number across two profiles. Connecting a provisioned number
|
|
136
|
+
# Move a provisioned number to a different profile. A number is not a single record. Alongside the number itself there are hidden telephony owner accounts (platform `phone`, plus `sms` when SMS is enabled) and, once WhatsApp is connected, the `whatsapp` account. They all carry a profileId and this endpoint moves them together. Use this instead of `PATCH /v1/accounts/{accountId}`: that one moves the social account only and leaves the number itself pinned to its original profile, which splits the number across two profiles. Connecting a Zernio-provisioned number from any profile but its own is rejected with a `409` (`WHATSAPP_NUMBER_PINNED_TO_PROFILE`). This endpoint is how you re-home the number first, so it can then be connected from the new profile. `id` is the number record id from `GET /v1/phone-numbers`, not an account id. A profile holds at most one account per platform, so the destination must be free of every platform this number occupies.
|
|
137
137
|
# @param id WhatsAppPhoneNumber id.
|
|
138
138
|
# @param move_whats_app_number_to_profile_request
|
|
139
139
|
# @param [Hash] opts the optional parameters
|
data/spec/models/list_instagram_pages200_response_pages_inner_instagram_business_account_spec.rb
ADDED
|
@@ -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
|
|
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::ListInstagramPages200ResponsePagesInnerInstagramBusinessAccount
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::ListInstagramPages200ResponsePagesInnerInstagramBusinessAccount do
|
|
21
|
+
#let(:instance) { Zernio::ListInstagramPages200ResponsePagesInnerInstagramBusinessAccount.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of ListInstagramPages200ResponsePagesInnerInstagramBusinessAccount' do
|
|
24
|
+
it 'should create an instance of ListInstagramPages200ResponsePagesInnerInstagramBusinessAccount' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::ListInstagramPages200ResponsePagesInnerInstagramBusinessAccount)
|
|
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 "username"' 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 "profile_picture_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
|
+
end
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
|
|
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::ListInstagramPages200ResponsePagesInner
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::ListInstagramPages200ResponsePagesInner do
|
|
21
|
+
#let(:instance) { Zernio::ListInstagramPages200ResponsePagesInner.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of ListInstagramPages200ResponsePagesInner' do
|
|
24
|
+
it 'should create an instance of ListInstagramPages200ResponsePagesInner' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::ListInstagramPages200ResponsePagesInner)
|
|
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 "name"' 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 "access_token"' 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 "instagram_business_account"' 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
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
|
|
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::ListInstagramPages200Response
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::ListInstagramPages200Response do
|
|
21
|
+
#let(:instance) { Zernio::ListInstagramPages200Response.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of ListInstagramPages200Response' do
|
|
24
|
+
it 'should create an instance of ListInstagramPages200Response' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::ListInstagramPages200Response)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "pages"' 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
|
+
end
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
|
|
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::SelectInstagramAccount200ResponseAccount
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::SelectInstagramAccount200ResponseAccount do
|
|
21
|
+
#let(:instance) { Zernio::SelectInstagramAccount200ResponseAccount.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of SelectInstagramAccount200ResponseAccount' do
|
|
24
|
+
it 'should create an instance of SelectInstagramAccount200ResponseAccount' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::SelectInstagramAccount200ResponseAccount)
|
|
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 "platform"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["instagram"])
|
|
40
|
+
# validator.allowable_values.each do |value|
|
|
41
|
+
# expect { instance.platform = value }.not_to raise_error
|
|
42
|
+
# end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
describe 'test attribute "username"' 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
|
+
|
|
52
|
+
describe 'test attribute "display_name"' do
|
|
53
|
+
it 'should work' do
|
|
54
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
describe 'test attribute "profile_picture"' do
|
|
59
|
+
it 'should work' do
|
|
60
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
describe 'test attribute "is_active"' do
|
|
65
|
+
it 'should work' do
|
|
66
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
describe 'test attribute "login_method"' do
|
|
71
|
+
it 'should work' do
|
|
72
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
73
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["facebook_login"])
|
|
74
|
+
# validator.allowable_values.each do |value|
|
|
75
|
+
# expect { instance.login_method = value }.not_to raise_error
|
|
76
|
+
# end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
end
|
|
@@ -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
|
|
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::SelectInstagramAccount200Response
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::SelectInstagramAccount200Response do
|
|
21
|
+
#let(:instance) { Zernio::SelectInstagramAccount200Response.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of SelectInstagramAccount200Response' do
|
|
24
|
+
it 'should create an instance of SelectInstagramAccount200Response' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::SelectInstagramAccount200Response)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "message"' 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 "redirect_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
|
+
describe 'test attribute "account"' 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,54 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
|
|
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::SelectInstagramAccountRequest
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::SelectInstagramAccountRequest do
|
|
21
|
+
#let(:instance) { Zernio::SelectInstagramAccountRequest.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of SelectInstagramAccountRequest' do
|
|
24
|
+
it 'should create an instance of SelectInstagramAccountRequest' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::SelectInstagramAccountRequest)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "profile_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 "page_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 "temp_token"' 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 "redirect_url"' 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
|
+
end
|
|
Binary file
|