late-sdk 0.0.64 → 0.0.66
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 +10 -0
- data/docs/AnalyticsApi.md +160 -0
- data/docs/GetInstagramAccountInsights404Response.md +18 -0
- data/docs/InstagramAccountInsightsResponse.md +32 -0
- data/docs/InstagramAccountInsightsResponseDateRange.md +20 -0
- data/docs/InstagramAccountInsightsResponseMetricsValue.md +22 -0
- data/docs/InstagramAccountInsightsResponseMetricsValueBreakdownsInner.md +20 -0
- data/docs/InstagramAccountInsightsResponseMetricsValueValuesInner.md +20 -0
- data/docs/InstagramDemographicsResponse.md +30 -0
- data/docs/InstagramDemographicsResponseDemographicsValueInner.md +20 -0
- data/docs/TikTokPlatformData.md +1 -1
- data/lib/late-sdk/api/analytics_api.rb +164 -0
- data/lib/late-sdk/models/get_instagram_account_insights404_response.rb +147 -0
- data/lib/late-sdk/models/instagram_account_insights_response.rb +249 -0
- data/lib/late-sdk/models/instagram_account_insights_response_date_range.rb +156 -0
- data/lib/late-sdk/models/instagram_account_insights_response_metrics_value.rb +172 -0
- data/lib/late-sdk/models/instagram_account_insights_response_metrics_value_breakdowns_inner.rb +156 -0
- data/lib/late-sdk/models/instagram_account_insights_response_metrics_value_values_inner.rb +156 -0
- data/lib/late-sdk/models/instagram_demographics_response.rb +252 -0
- data/lib/late-sdk/models/instagram_demographics_response_demographics_value_inner.rb +158 -0
- data/lib/late-sdk/models/tik_tok_platform_data.rb +1 -1
- data/lib/late-sdk/version.rb +1 -1
- data/lib/late-sdk.rb +8 -0
- data/openapi.yaml +363 -1
- data/spec/api/analytics_api_spec.rb +32 -0
- data/spec/models/get_instagram_account_insights404_response_spec.rb +36 -0
- data/spec/models/instagram_account_insights_response_date_range_spec.rb +42 -0
- data/spec/models/instagram_account_insights_response_metrics_value_breakdowns_inner_spec.rb +42 -0
- data/spec/models/instagram_account_insights_response_metrics_value_spec.rb +48 -0
- data/spec/models/instagram_account_insights_response_metrics_value_values_inner_spec.rb +42 -0
- data/spec/models/instagram_account_insights_response_spec.rb +82 -0
- data/spec/models/instagram_demographics_response_demographics_value_inner_spec.rb +42 -0
- data/spec/models/instagram_demographics_response_spec.rb +80 -0
- data/zernio-sdk-0.0.66.gem +0 -0
- metadata +35 -3
- data/zernio-sdk-0.0.64.gem +0 -0
data/openapi.yaml
CHANGED
|
@@ -443,6 +443,104 @@ components:
|
|
|
443
443
|
type: string
|
|
444
444
|
format: uri
|
|
445
445
|
description: URL to redirect user for reauthorization
|
|
446
|
+
InstagramAccountInsightsResponse:
|
|
447
|
+
type: object
|
|
448
|
+
properties:
|
|
449
|
+
success:
|
|
450
|
+
type: boolean
|
|
451
|
+
example: true
|
|
452
|
+
accountId:
|
|
453
|
+
type: string
|
|
454
|
+
description: The Zernio SocialAccount ID
|
|
455
|
+
platform:
|
|
456
|
+
type: string
|
|
457
|
+
example: "instagram"
|
|
458
|
+
dateRange:
|
|
459
|
+
type: object
|
|
460
|
+
properties:
|
|
461
|
+
since:
|
|
462
|
+
type: string
|
|
463
|
+
format: date
|
|
464
|
+
until:
|
|
465
|
+
type: string
|
|
466
|
+
format: date
|
|
467
|
+
metricType:
|
|
468
|
+
type: string
|
|
469
|
+
enum: [time_series, total_value]
|
|
470
|
+
breakdown:
|
|
471
|
+
type: string
|
|
472
|
+
description: Breakdown dimension used (only present when breakdown was requested)
|
|
473
|
+
metrics:
|
|
474
|
+
type: object
|
|
475
|
+
description: |
|
|
476
|
+
Object keyed by metric name. For time_series: each metric has "total" (number) and "values" (array of {date, value}).
|
|
477
|
+
For total_value: each metric has "total" (number) and optionally "breakdowns" (array of {dimension, value}).
|
|
478
|
+
additionalProperties:
|
|
479
|
+
type: object
|
|
480
|
+
properties:
|
|
481
|
+
total:
|
|
482
|
+
type: number
|
|
483
|
+
description: Sum or aggregate value for the metric
|
|
484
|
+
values:
|
|
485
|
+
type: array
|
|
486
|
+
description: Daily values (only for time_series)
|
|
487
|
+
items:
|
|
488
|
+
type: object
|
|
489
|
+
properties:
|
|
490
|
+
date:
|
|
491
|
+
type: string
|
|
492
|
+
format: date
|
|
493
|
+
value:
|
|
494
|
+
type: number
|
|
495
|
+
breakdowns:
|
|
496
|
+
type: array
|
|
497
|
+
description: Breakdown values (only for total_value with breakdown)
|
|
498
|
+
items:
|
|
499
|
+
type: object
|
|
500
|
+
properties:
|
|
501
|
+
dimension:
|
|
502
|
+
type: string
|
|
503
|
+
value:
|
|
504
|
+
type: number
|
|
505
|
+
dataDelay:
|
|
506
|
+
type: string
|
|
507
|
+
example: "Data may be delayed up to 48 hours"
|
|
508
|
+
InstagramDemographicsResponse:
|
|
509
|
+
type: object
|
|
510
|
+
properties:
|
|
511
|
+
success:
|
|
512
|
+
type: boolean
|
|
513
|
+
example: true
|
|
514
|
+
accountId:
|
|
515
|
+
type: string
|
|
516
|
+
description: The Zernio SocialAccount ID
|
|
517
|
+
platform:
|
|
518
|
+
type: string
|
|
519
|
+
example: "instagram"
|
|
520
|
+
metric:
|
|
521
|
+
type: string
|
|
522
|
+
enum: [follower_demographics, engaged_audience_demographics]
|
|
523
|
+
timeframe:
|
|
524
|
+
type: string
|
|
525
|
+
enum: [this_week, this_month]
|
|
526
|
+
description: The timeframe used for demographic data
|
|
527
|
+
demographics:
|
|
528
|
+
type: object
|
|
529
|
+
description: Object keyed by breakdown dimension (age, city, country, gender)
|
|
530
|
+
additionalProperties:
|
|
531
|
+
type: array
|
|
532
|
+
items:
|
|
533
|
+
type: object
|
|
534
|
+
properties:
|
|
535
|
+
dimension:
|
|
536
|
+
type: string
|
|
537
|
+
description: The dimension value (e.g., "25-34", "US", "M")
|
|
538
|
+
value:
|
|
539
|
+
type: number
|
|
540
|
+
description: Count of accounts in this dimension
|
|
541
|
+
note:
|
|
542
|
+
type: string
|
|
543
|
+
example: "Demographics show top 45 entries per dimension. Requires 100+ followers."
|
|
446
544
|
Webhook:
|
|
447
545
|
type: object
|
|
448
546
|
description: Individual webhook configuration for receiving real-time notifications
|
|
@@ -1490,7 +1588,7 @@ components:
|
|
|
1490
1588
|
videoCoverImageUrl:
|
|
1491
1589
|
type: string
|
|
1492
1590
|
format: uri
|
|
1493
|
-
description: Optional for video posts. URL of a custom thumbnail image (JPG, PNG, or WebP, max 20MB). The image is
|
|
1591
|
+
description: Optional for video posts. URL of a custom thumbnail image (JPG, PNG, or WebP, max 20MB). The image is stitched as a single frame at the start of the video and used as the cover. Overrides videoCoverTimestampMs when provided.
|
|
1494
1592
|
photoCoverIndex:
|
|
1495
1593
|
type: integer
|
|
1496
1594
|
description: Optional for photo carousels. Index of image to use as cover, 0-based (defaults to 0/first image).
|
|
@@ -3269,6 +3367,270 @@ paths:
|
|
|
3269
3367
|
success: { type: boolean, example: false }
|
|
3270
3368
|
error: { type: string }
|
|
3271
3369
|
|
|
3370
|
+
/v1/analytics/instagram/account-insights:
|
|
3371
|
+
get:
|
|
3372
|
+
operationId: getInstagramAccountInsights
|
|
3373
|
+
tags: [Analytics]
|
|
3374
|
+
summary: Get Instagram account-level insights
|
|
3375
|
+
description: |
|
|
3376
|
+
Returns account-level Instagram insights such as reach, views, accounts engaged, and total interactions.
|
|
3377
|
+
These metrics reflect the entire account's performance across all content surfaces (feed, stories, explore, profile),
|
|
3378
|
+
and are fundamentally different from post-level metrics. Data may be delayed up to 48 hours.
|
|
3379
|
+
Max 90 days, defaults to last 30 days. Requires the Analytics add-on.
|
|
3380
|
+
parameters:
|
|
3381
|
+
- name: accountId
|
|
3382
|
+
in: query
|
|
3383
|
+
required: true
|
|
3384
|
+
schema: { type: string }
|
|
3385
|
+
description: The Zernio SocialAccount ID for the Instagram account
|
|
3386
|
+
- name: metrics
|
|
3387
|
+
in: query
|
|
3388
|
+
schema: { type: string }
|
|
3389
|
+
description: |
|
|
3390
|
+
Comma-separated list of metrics. Defaults to "reach,views,accounts_engaged,total_interactions".
|
|
3391
|
+
Valid metrics: reach, views, accounts_engaged, total_interactions, comments, likes, saves, shares,
|
|
3392
|
+
replies, reposts, follows_and_unfollows, profile_links_taps.
|
|
3393
|
+
Note: only "reach" supports metricType=time_series. All other metrics are total_value only.
|
|
3394
|
+
- name: since
|
|
3395
|
+
in: query
|
|
3396
|
+
schema: { type: string, format: date }
|
|
3397
|
+
description: Start date (YYYY-MM-DD). Defaults to 30 days ago.
|
|
3398
|
+
- name: until
|
|
3399
|
+
in: query
|
|
3400
|
+
schema: { type: string, format: date }
|
|
3401
|
+
description: End date (YYYY-MM-DD). Defaults to today.
|
|
3402
|
+
- name: metricType
|
|
3403
|
+
in: query
|
|
3404
|
+
schema:
|
|
3405
|
+
type: string
|
|
3406
|
+
enum: [time_series, total_value]
|
|
3407
|
+
default: total_value
|
|
3408
|
+
description: |
|
|
3409
|
+
"total_value" (default) returns aggregated totals and supports breakdowns.
|
|
3410
|
+
"time_series" returns daily values but only works with the "reach" metric.
|
|
3411
|
+
- name: breakdown
|
|
3412
|
+
in: query
|
|
3413
|
+
schema: { type: string }
|
|
3414
|
+
description: |
|
|
3415
|
+
Breakdown dimension (only valid with metricType=total_value).
|
|
3416
|
+
Valid values depend on the metric: media_product_type, follow_type, follower_type, contact_button_type.
|
|
3417
|
+
responses:
|
|
3418
|
+
'200':
|
|
3419
|
+
description: Account insights data
|
|
3420
|
+
content:
|
|
3421
|
+
application/json:
|
|
3422
|
+
schema:
|
|
3423
|
+
$ref: '#/components/schemas/InstagramAccountInsightsResponse'
|
|
3424
|
+
examples:
|
|
3425
|
+
timeSeries:
|
|
3426
|
+
summary: Time series response with daily values
|
|
3427
|
+
value:
|
|
3428
|
+
success: true
|
|
3429
|
+
accountId: "64e1a2b3c4d5e6f7a8b9c0d1"
|
|
3430
|
+
platform: "instagram"
|
|
3431
|
+
dateRange:
|
|
3432
|
+
since: "2026-03-01"
|
|
3433
|
+
until: "2026-03-22"
|
|
3434
|
+
metricType: "time_series"
|
|
3435
|
+
metrics:
|
|
3436
|
+
reach:
|
|
3437
|
+
total: 12500
|
|
3438
|
+
values:
|
|
3439
|
+
- date: "2026-03-01"
|
|
3440
|
+
value: 420
|
|
3441
|
+
- date: "2026-03-02"
|
|
3442
|
+
value: 385
|
|
3443
|
+
views:
|
|
3444
|
+
total: 45000
|
|
3445
|
+
values:
|
|
3446
|
+
- date: "2026-03-01"
|
|
3447
|
+
value: 1520
|
|
3448
|
+
- date: "2026-03-02"
|
|
3449
|
+
value: 1380
|
|
3450
|
+
dataDelay: "Data may be delayed up to 48 hours"
|
|
3451
|
+
totalValueWithBreakdown:
|
|
3452
|
+
summary: Total value response with media type breakdown
|
|
3453
|
+
value:
|
|
3454
|
+
success: true
|
|
3455
|
+
accountId: "64e1a2b3c4d5e6f7a8b9c0d1"
|
|
3456
|
+
platform: "instagram"
|
|
3457
|
+
dateRange:
|
|
3458
|
+
since: "2026-03-01"
|
|
3459
|
+
until: "2026-03-22"
|
|
3460
|
+
metricType: "total_value"
|
|
3461
|
+
breakdown: "media_product_type"
|
|
3462
|
+
metrics:
|
|
3463
|
+
reach:
|
|
3464
|
+
total: 12500
|
|
3465
|
+
breakdowns:
|
|
3466
|
+
- dimension: "FEED"
|
|
3467
|
+
value: 5000
|
|
3468
|
+
- dimension: "REELS"
|
|
3469
|
+
value: 7500
|
|
3470
|
+
dataDelay: "Data may be delayed up to 48 hours"
|
|
3471
|
+
'400':
|
|
3472
|
+
description: Bad request (invalid parameters)
|
|
3473
|
+
content:
|
|
3474
|
+
application/json:
|
|
3475
|
+
schema:
|
|
3476
|
+
type: object
|
|
3477
|
+
properties:
|
|
3478
|
+
error: { type: string }
|
|
3479
|
+
examples:
|
|
3480
|
+
invalidMetric:
|
|
3481
|
+
value:
|
|
3482
|
+
error: "Invalid metrics: impressions"
|
|
3483
|
+
validMetrics: ["accounts_engaged", "comments", "follows_and_unfollows", "likes", "profile_links_taps", "reach", "replies", "reposts", "saves", "shares", "total_interactions", "views"]
|
|
3484
|
+
breakdownWithTimeSeries:
|
|
3485
|
+
value:
|
|
3486
|
+
error: "Breakdowns are only supported with metricType=total_value"
|
|
3487
|
+
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
3488
|
+
'402':
|
|
3489
|
+
description: Analytics add-on required
|
|
3490
|
+
content:
|
|
3491
|
+
application/json:
|
|
3492
|
+
schema:
|
|
3493
|
+
type: object
|
|
3494
|
+
properties:
|
|
3495
|
+
error: { type: string, example: "Analytics add-on required" }
|
|
3496
|
+
code: { type: string, example: "analytics_addon_required" }
|
|
3497
|
+
'403':
|
|
3498
|
+
description: Access denied to this account
|
|
3499
|
+
content:
|
|
3500
|
+
application/json:
|
|
3501
|
+
schema:
|
|
3502
|
+
type: object
|
|
3503
|
+
properties:
|
|
3504
|
+
error: { type: string, example: "Access denied to this account" }
|
|
3505
|
+
'404':
|
|
3506
|
+
description: Account not found
|
|
3507
|
+
content:
|
|
3508
|
+
application/json:
|
|
3509
|
+
schema:
|
|
3510
|
+
type: object
|
|
3511
|
+
properties:
|
|
3512
|
+
error: { type: string, example: "Account not found" }
|
|
3513
|
+
|
|
3514
|
+
/v1/analytics/instagram/demographics:
|
|
3515
|
+
get:
|
|
3516
|
+
operationId: getInstagramDemographics
|
|
3517
|
+
tags: [Analytics]
|
|
3518
|
+
summary: Get Instagram audience demographics
|
|
3519
|
+
description: |
|
|
3520
|
+
Returns audience demographic insights for an Instagram account, broken down by age, city, country, and/or gender.
|
|
3521
|
+
Requires at least 100 followers. Returns top 45 entries per dimension.
|
|
3522
|
+
Data may be delayed up to 48 hours. Requires the Analytics add-on.
|
|
3523
|
+
parameters:
|
|
3524
|
+
- name: accountId
|
|
3525
|
+
in: query
|
|
3526
|
+
required: true
|
|
3527
|
+
schema: { type: string }
|
|
3528
|
+
description: The Zernio SocialAccount ID for the Instagram account
|
|
3529
|
+
- name: metric
|
|
3530
|
+
in: query
|
|
3531
|
+
schema:
|
|
3532
|
+
type: string
|
|
3533
|
+
enum: [follower_demographics, engaged_audience_demographics]
|
|
3534
|
+
default: follower_demographics
|
|
3535
|
+
description: |
|
|
3536
|
+
"follower_demographics" for follower audience data, or "engaged_audience_demographics" for engaged viewers.
|
|
3537
|
+
- name: breakdown
|
|
3538
|
+
in: query
|
|
3539
|
+
schema: { type: string }
|
|
3540
|
+
description: |
|
|
3541
|
+
Comma-separated list of demographic dimensions: age, city, country, gender.
|
|
3542
|
+
Defaults to all four if omitted.
|
|
3543
|
+
- name: timeframe
|
|
3544
|
+
in: query
|
|
3545
|
+
schema:
|
|
3546
|
+
type: string
|
|
3547
|
+
enum: [this_week, this_month]
|
|
3548
|
+
default: this_month
|
|
3549
|
+
description: |
|
|
3550
|
+
Time period for demographic data. Defaults to "this_month".
|
|
3551
|
+
responses:
|
|
3552
|
+
'200':
|
|
3553
|
+
description: Demographic insights data
|
|
3554
|
+
content:
|
|
3555
|
+
application/json:
|
|
3556
|
+
schema:
|
|
3557
|
+
$ref: '#/components/schemas/InstagramDemographicsResponse'
|
|
3558
|
+
examples:
|
|
3559
|
+
allBreakdowns:
|
|
3560
|
+
summary: All four demographic breakdowns
|
|
3561
|
+
value:
|
|
3562
|
+
success: true
|
|
3563
|
+
accountId: "64e1a2b3c4d5e6f7a8b9c0d1"
|
|
3564
|
+
platform: "instagram"
|
|
3565
|
+
metric: "follower_demographics"
|
|
3566
|
+
timeframe: "last_30_days"
|
|
3567
|
+
demographics:
|
|
3568
|
+
age:
|
|
3569
|
+
- dimension: "25-34"
|
|
3570
|
+
value: 4500
|
|
3571
|
+
- dimension: "18-24"
|
|
3572
|
+
value: 3200
|
|
3573
|
+
gender:
|
|
3574
|
+
- dimension: "M"
|
|
3575
|
+
value: 3000
|
|
3576
|
+
- dimension: "F"
|
|
3577
|
+
value: 4800
|
|
3578
|
+
city:
|
|
3579
|
+
- dimension: "New York, New York"
|
|
3580
|
+
value: 800
|
|
3581
|
+
- dimension: "Los Angeles, California"
|
|
3582
|
+
value: 650
|
|
3583
|
+
country:
|
|
3584
|
+
- dimension: "US"
|
|
3585
|
+
value: 5000
|
|
3586
|
+
- dimension: "GB"
|
|
3587
|
+
value: 1200
|
|
3588
|
+
note: "Demographics show top 45 entries per dimension. Requires 100+ followers."
|
|
3589
|
+
'400':
|
|
3590
|
+
description: Bad request (invalid parameters)
|
|
3591
|
+
content:
|
|
3592
|
+
application/json:
|
|
3593
|
+
schema:
|
|
3594
|
+
type: object
|
|
3595
|
+
properties:
|
|
3596
|
+
error: { type: string }
|
|
3597
|
+
examples:
|
|
3598
|
+
invalidBreakdown:
|
|
3599
|
+
value:
|
|
3600
|
+
error: "Invalid breakdowns: location"
|
|
3601
|
+
validBreakdowns: ["age", "city", "country", "gender"]
|
|
3602
|
+
insufficientFollowers:
|
|
3603
|
+
value:
|
|
3604
|
+
success: false
|
|
3605
|
+
error: "Demographic insights require at least 100 followers."
|
|
3606
|
+
code: "instagram_insufficient_followers"
|
|
3607
|
+
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
3608
|
+
'402':
|
|
3609
|
+
description: Analytics add-on required
|
|
3610
|
+
content:
|
|
3611
|
+
application/json:
|
|
3612
|
+
schema:
|
|
3613
|
+
type: object
|
|
3614
|
+
properties:
|
|
3615
|
+
error: { type: string, example: "Analytics add-on required" }
|
|
3616
|
+
code: { type: string, example: "analytics_addon_required" }
|
|
3617
|
+
'403':
|
|
3618
|
+
description: Access denied to this account
|
|
3619
|
+
content:
|
|
3620
|
+
application/json:
|
|
3621
|
+
schema:
|
|
3622
|
+
type: object
|
|
3623
|
+
properties:
|
|
3624
|
+
error: { type: string, example: "Access denied to this account" }
|
|
3625
|
+
'404':
|
|
3626
|
+
description: Account not found
|
|
3627
|
+
content:
|
|
3628
|
+
application/json:
|
|
3629
|
+
schema:
|
|
3630
|
+
type: object
|
|
3631
|
+
properties:
|
|
3632
|
+
error: { type: string, example: "Account not found" }
|
|
3633
|
+
|
|
3272
3634
|
/v1/analytics/daily-metrics:
|
|
3273
3635
|
get:
|
|
3274
3636
|
operationId: getDailyMetrics
|
|
@@ -113,6 +113,38 @@ describe 'AnalyticsApi' do
|
|
|
113
113
|
end
|
|
114
114
|
end
|
|
115
115
|
|
|
116
|
+
# unit tests for get_instagram_account_insights
|
|
117
|
+
# Get Instagram account-level insights
|
|
118
|
+
# Returns account-level Instagram insights such as reach, views, accounts engaged, and total interactions. These metrics reflect the entire account's performance across all content surfaces (feed, stories, explore, profile), and are fundamentally different from post-level metrics. Data may be delayed up to 48 hours. Max 90 days, defaults to last 30 days. Requires the Analytics add-on.
|
|
119
|
+
# @param account_id The Zernio SocialAccount ID for the Instagram account
|
|
120
|
+
# @param [Hash] opts the optional parameters
|
|
121
|
+
# @option opts [String] :metrics Comma-separated list of metrics. Defaults to \"reach,views,accounts_engaged,total_interactions\". Valid metrics: reach, views, accounts_engaged, total_interactions, comments, likes, saves, shares, replies, reposts, follows_and_unfollows, profile_links_taps. Note: only \"reach\" supports metricType=time_series. All other metrics are total_value only.
|
|
122
|
+
# @option opts [Date] :since Start date (YYYY-MM-DD). Defaults to 30 days ago.
|
|
123
|
+
# @option opts [Date] :_until End date (YYYY-MM-DD). Defaults to today.
|
|
124
|
+
# @option opts [String] :metric_type \"total_value\" (default) returns aggregated totals and supports breakdowns. \"time_series\" returns daily values but only works with the \"reach\" metric.
|
|
125
|
+
# @option opts [String] :breakdown Breakdown dimension (only valid with metricType=total_value). Valid values depend on the metric: media_product_type, follow_type, follower_type, contact_button_type.
|
|
126
|
+
# @return [InstagramAccountInsightsResponse]
|
|
127
|
+
describe 'get_instagram_account_insights test' do
|
|
128
|
+
it 'should work' do
|
|
129
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# unit tests for get_instagram_demographics
|
|
134
|
+
# Get Instagram audience demographics
|
|
135
|
+
# Returns audience demographic insights for an Instagram account, broken down by age, city, country, and/or gender. Requires at least 100 followers. Returns top 45 entries per dimension. Data may be delayed up to 48 hours. Requires the Analytics add-on.
|
|
136
|
+
# @param account_id The Zernio SocialAccount ID for the Instagram account
|
|
137
|
+
# @param [Hash] opts the optional parameters
|
|
138
|
+
# @option opts [String] :metric \"follower_demographics\" for follower audience data, or \"engaged_audience_demographics\" for engaged viewers.
|
|
139
|
+
# @option opts [String] :breakdown Comma-separated list of demographic dimensions: age, city, country, gender. Defaults to all four if omitted.
|
|
140
|
+
# @option opts [String] :timeframe Time period for demographic data. Defaults to \"this_month\".
|
|
141
|
+
# @return [InstagramDemographicsResponse]
|
|
142
|
+
describe 'get_instagram_demographics test' do
|
|
143
|
+
it 'should work' do
|
|
144
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
145
|
+
end
|
|
146
|
+
end
|
|
147
|
+
|
|
116
148
|
# unit tests for get_linked_in_aggregate_analytics
|
|
117
149
|
# Get LinkedIn aggregate stats
|
|
118
150
|
# Returns aggregate analytics across all posts for a LinkedIn personal account. Org accounts should use /v1/analytics instead. Requires r_member_postAnalytics scope.
|
|
@@ -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.1
|
|
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 Late::GetInstagramAccountInsights404Response
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Late::GetInstagramAccountInsights404Response do
|
|
21
|
+
#let(:instance) { Late::GetInstagramAccountInsights404Response.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of GetInstagramAccountInsights404Response' do
|
|
24
|
+
it 'should create an instance of GetInstagramAccountInsights404Response' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Late::GetInstagramAccountInsights404Response)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "error"' 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,42 @@
|
|
|
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.1
|
|
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 Late::InstagramAccountInsightsResponseDateRange
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Late::InstagramAccountInsightsResponseDateRange do
|
|
21
|
+
#let(:instance) { Late::InstagramAccountInsightsResponseDateRange.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of InstagramAccountInsightsResponseDateRange' do
|
|
24
|
+
it 'should create an instance of InstagramAccountInsightsResponseDateRange' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Late::InstagramAccountInsightsResponseDateRange)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "since"' 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 "_until"' 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
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
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 Late::InstagramAccountInsightsResponseMetricsValueBreakdownsInner
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Late::InstagramAccountInsightsResponseMetricsValueBreakdownsInner do
|
|
21
|
+
#let(:instance) { Late::InstagramAccountInsightsResponseMetricsValueBreakdownsInner.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of InstagramAccountInsightsResponseMetricsValueBreakdownsInner' do
|
|
24
|
+
it 'should create an instance of InstagramAccountInsightsResponseMetricsValueBreakdownsInner' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Late::InstagramAccountInsightsResponseMetricsValueBreakdownsInner)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "dimension"' 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 "value"' 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,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.1
|
|
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 Late::InstagramAccountInsightsResponseMetricsValue
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Late::InstagramAccountInsightsResponseMetricsValue do
|
|
21
|
+
#let(:instance) { Late::InstagramAccountInsightsResponseMetricsValue.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of InstagramAccountInsightsResponseMetricsValue' do
|
|
24
|
+
it 'should create an instance of InstagramAccountInsightsResponseMetricsValue' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Late::InstagramAccountInsightsResponseMetricsValue)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "total"' 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 "values"' 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 "breakdowns"' 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
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
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 Late::InstagramAccountInsightsResponseMetricsValueValuesInner
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Late::InstagramAccountInsightsResponseMetricsValueValuesInner do
|
|
21
|
+
#let(:instance) { Late::InstagramAccountInsightsResponseMetricsValueValuesInner.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of InstagramAccountInsightsResponseMetricsValueValuesInner' do
|
|
24
|
+
it 'should create an instance of InstagramAccountInsightsResponseMetricsValueValuesInner' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Late::InstagramAccountInsightsResponseMetricsValueValuesInner)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "date"' 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 "value"' 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
|