zernio-sdk 0.0.70 → 0.0.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/docs/AnalyticsApi.md +4 -0
- data/lib/late-sdk/api/analytics_api.rb +6 -0
- data/lib/late-sdk/version.rb +1 -1
- data/openapi.yaml +8 -0
- data/spec/api/analytics_api_spec.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '082de95081a7b749e1cd25670fdbda8b19ba8336d1006ba4e1c23c972335e8c5'
|
|
4
|
+
data.tar.gz: d7e6b947e601a198ec0d423d3e9aad95a3a71c1b503ec553ae497f9d18a51fd0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4ef0a70de3edb5568aeba34c55ec16419f7182666a54eff7662cd860a475a0b6ff6e602927f3264cb90a1544619fbed080262aded92e04f034f74d498043d191
|
|
7
|
+
data.tar.gz: e1edf7b82f12eeb81fda024e340dbc4a7ccaddfc4f5be88f2f38c8df82eb95ed3e898191693c19b9eb99ae1d867a9a9c55d6f5097b474a5a445d37f210b53f28
|
data/docs/AnalyticsApi.md
CHANGED
|
@@ -43,6 +43,7 @@ opts = {
|
|
|
43
43
|
post_id: 'post_id_example', # String | Returns analytics for a single post. Accepts both Zernio Post IDs and External Post IDs. Zernio IDs are auto-resolved to External Post analytics.
|
|
44
44
|
platform: 'platform_example', # String | Filter by platform (default \"all\")
|
|
45
45
|
profile_id: 'profile_id_example', # String | Filter by profile ID (default \"all\")
|
|
46
|
+
account_id: 'account_id_example', # String | Filter by social account ID
|
|
46
47
|
source: 'all', # String | Filter by post source: late (posted via Zernio API), external (synced from platform), all (default)
|
|
47
48
|
from_date: Date.parse('2013-10-20'), # Date | Inclusive lower bound (YYYY-MM-DD). Defaults to 90 days ago if omitted. Max range is 366 days.
|
|
48
49
|
to_date: Date.parse('2013-10-20'), # Date | Inclusive upper bound (YYYY-MM-DD). Defaults to today if omitted.
|
|
@@ -86,6 +87,7 @@ end
|
|
|
86
87
|
| **post_id** | **String** | Returns analytics for a single post. Accepts both Zernio Post IDs and External Post IDs. Zernio IDs are auto-resolved to External Post analytics. | [optional] |
|
|
87
88
|
| **platform** | **String** | Filter by platform (default \"all\") | [optional] |
|
|
88
89
|
| **profile_id** | **String** | Filter by profile ID (default \"all\") | [optional] |
|
|
90
|
+
| **account_id** | **String** | Filter by social account ID | [optional] |
|
|
89
91
|
| **source** | **String** | Filter by post source: late (posted via Zernio API), external (synced from platform), all (default) | [optional][default to 'all'] |
|
|
90
92
|
| **from_date** | **Date** | Inclusive lower bound (YYYY-MM-DD). Defaults to 90 days ago if omitted. Max range is 366 days. | [optional] |
|
|
91
93
|
| **to_date** | **Date** | Inclusive upper bound (YYYY-MM-DD). Defaults to today if omitted. | [optional] |
|
|
@@ -281,6 +283,7 @@ api_instance = Late::AnalyticsApi.new
|
|
|
281
283
|
opts = {
|
|
282
284
|
platform: 'platform_example', # String | Filter by platform (e.g. \"instagram\", \"tiktok\"). Omit for all platforms.
|
|
283
285
|
profile_id: 'profile_id_example', # String | Filter by profile ID. Omit for all profiles.
|
|
286
|
+
account_id: 'account_id_example', # String | Filter by social account ID
|
|
284
287
|
from_date: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Inclusive start date (ISO 8601). Defaults to 180 days ago.
|
|
285
288
|
to_date: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Inclusive end date (ISO 8601). Defaults to now.
|
|
286
289
|
source: 'all' # String | Filter by post origin. \"late\" for posts published via Zernio, \"external\" for posts imported from platforms.
|
|
@@ -319,6 +322,7 @@ end
|
|
|
319
322
|
| ---- | ---- | ----------- | ----- |
|
|
320
323
|
| **platform** | **String** | Filter by platform (e.g. \"instagram\", \"tiktok\"). Omit for all platforms. | [optional] |
|
|
321
324
|
| **profile_id** | **String** | Filter by profile ID. Omit for all profiles. | [optional] |
|
|
325
|
+
| **account_id** | **String** | Filter by social account ID | [optional] |
|
|
322
326
|
| **from_date** | **Time** | Inclusive start date (ISO 8601). Defaults to 180 days ago. | [optional] |
|
|
323
327
|
| **to_date** | **Time** | Inclusive end date (ISO 8601). Defaults to now. | [optional] |
|
|
324
328
|
| **source** | **String** | Filter by post origin. \"late\" for posts published via Zernio, \"external\" for posts imported from platforms. | [optional][default to 'all'] |
|
|
@@ -25,6 +25,7 @@ module Late
|
|
|
25
25
|
# @option opts [String] :post_id Returns analytics for a single post. Accepts both Zernio Post IDs and External Post IDs. Zernio IDs are auto-resolved to External Post analytics.
|
|
26
26
|
# @option opts [String] :platform Filter by platform (default \"all\")
|
|
27
27
|
# @option opts [String] :profile_id Filter by profile ID (default \"all\")
|
|
28
|
+
# @option opts [String] :account_id Filter by social account ID
|
|
28
29
|
# @option opts [String] :source Filter by post source: late (posted via Zernio API), external (synced from platform), all (default) (default to 'all')
|
|
29
30
|
# @option opts [Date] :from_date Inclusive lower bound (YYYY-MM-DD). Defaults to 90 days ago if omitted. Max range is 366 days.
|
|
30
31
|
# @option opts [Date] :to_date Inclusive upper bound (YYYY-MM-DD). Defaults to today if omitted.
|
|
@@ -44,6 +45,7 @@ module Late
|
|
|
44
45
|
# @option opts [String] :post_id Returns analytics for a single post. Accepts both Zernio Post IDs and External Post IDs. Zernio IDs are auto-resolved to External Post analytics.
|
|
45
46
|
# @option opts [String] :platform Filter by platform (default \"all\")
|
|
46
47
|
# @option opts [String] :profile_id Filter by profile ID (default \"all\")
|
|
48
|
+
# @option opts [String] :account_id Filter by social account ID
|
|
47
49
|
# @option opts [String] :source Filter by post source: late (posted via Zernio API), external (synced from platform), all (default) (default to 'all')
|
|
48
50
|
# @option opts [Date] :from_date Inclusive lower bound (YYYY-MM-DD). Defaults to 90 days ago if omitted. Max range is 366 days.
|
|
49
51
|
# @option opts [Date] :to_date Inclusive upper bound (YYYY-MM-DD). Defaults to today if omitted.
|
|
@@ -88,6 +90,7 @@ module Late
|
|
|
88
90
|
query_params[:'postId'] = opts[:'post_id'] if !opts[:'post_id'].nil?
|
|
89
91
|
query_params[:'platform'] = opts[:'platform'] if !opts[:'platform'].nil?
|
|
90
92
|
query_params[:'profileId'] = opts[:'profile_id'] if !opts[:'profile_id'].nil?
|
|
93
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
91
94
|
query_params[:'source'] = opts[:'source'] if !opts[:'source'].nil?
|
|
92
95
|
query_params[:'fromDate'] = opts[:'from_date'] if !opts[:'from_date'].nil?
|
|
93
96
|
query_params[:'toDate'] = opts[:'to_date'] if !opts[:'to_date'].nil?
|
|
@@ -275,6 +278,7 @@ module Late
|
|
|
275
278
|
# @param [Hash] opts the optional parameters
|
|
276
279
|
# @option opts [String] :platform Filter by platform (e.g. \"instagram\", \"tiktok\"). Omit for all platforms.
|
|
277
280
|
# @option opts [String] :profile_id Filter by profile ID. Omit for all profiles.
|
|
281
|
+
# @option opts [String] :account_id Filter by social account ID
|
|
278
282
|
# @option opts [Time] :from_date Inclusive start date (ISO 8601). Defaults to 180 days ago.
|
|
279
283
|
# @option opts [Time] :to_date Inclusive end date (ISO 8601). Defaults to now.
|
|
280
284
|
# @option opts [String] :source Filter by post origin. \"late\" for posts published via Zernio, \"external\" for posts imported from platforms. (default to 'all')
|
|
@@ -289,6 +293,7 @@ module Late
|
|
|
289
293
|
# @param [Hash] opts the optional parameters
|
|
290
294
|
# @option opts [String] :platform Filter by platform (e.g. \"instagram\", \"tiktok\"). Omit for all platforms.
|
|
291
295
|
# @option opts [String] :profile_id Filter by profile ID. Omit for all profiles.
|
|
296
|
+
# @option opts [String] :account_id Filter by social account ID
|
|
292
297
|
# @option opts [Time] :from_date Inclusive start date (ISO 8601). Defaults to 180 days ago.
|
|
293
298
|
# @option opts [Time] :to_date Inclusive end date (ISO 8601). Defaults to now.
|
|
294
299
|
# @option opts [String] :source Filter by post origin. \"late\" for posts published via Zernio, \"external\" for posts imported from platforms. (default to 'all')
|
|
@@ -308,6 +313,7 @@ module Late
|
|
|
308
313
|
query_params = opts[:query_params] || {}
|
|
309
314
|
query_params[:'platform'] = opts[:'platform'] if !opts[:'platform'].nil?
|
|
310
315
|
query_params[:'profileId'] = opts[:'profile_id'] if !opts[:'profile_id'].nil?
|
|
316
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
311
317
|
query_params[:'fromDate'] = opts[:'from_date'] if !opts[:'from_date'].nil?
|
|
312
318
|
query_params[:'toDate'] = opts[:'to_date'] if !opts[:'to_date'].nil?
|
|
313
319
|
query_params[:'source'] = opts[:'source'] if !opts[:'source'].nil?
|
data/lib/late-sdk/version.rb
CHANGED
data/openapi.yaml
CHANGED
|
@@ -3081,6 +3081,10 @@ paths:
|
|
|
3081
3081
|
in: query
|
|
3082
3082
|
schema: { type: string }
|
|
3083
3083
|
description: Filter by profile ID (default "all")
|
|
3084
|
+
- name: accountId
|
|
3085
|
+
in: query
|
|
3086
|
+
schema: { type: string }
|
|
3087
|
+
description: Filter by social account ID
|
|
3084
3088
|
- name: source
|
|
3085
3089
|
in: query
|
|
3086
3090
|
schema: { type: string, enum: [all, late, external], default: all }
|
|
@@ -3693,6 +3697,10 @@ paths:
|
|
|
3693
3697
|
in: query
|
|
3694
3698
|
schema: { type: string }
|
|
3695
3699
|
description: Filter by profile ID. Omit for all profiles.
|
|
3700
|
+
- name: accountId
|
|
3701
|
+
in: query
|
|
3702
|
+
schema: { type: string }
|
|
3703
|
+
description: Filter by social account ID
|
|
3696
3704
|
- name: fromDate
|
|
3697
3705
|
in: query
|
|
3698
3706
|
schema: { type: string, format: date-time }
|
|
@@ -39,6 +39,7 @@ describe 'AnalyticsApi' do
|
|
|
39
39
|
# @option opts [String] :post_id Returns analytics for a single post. Accepts both Zernio Post IDs and External Post IDs. Zernio IDs are auto-resolved to External Post analytics.
|
|
40
40
|
# @option opts [String] :platform Filter by platform (default \"all\")
|
|
41
41
|
# @option opts [String] :profile_id Filter by profile ID (default \"all\")
|
|
42
|
+
# @option opts [String] :account_id Filter by social account ID
|
|
42
43
|
# @option opts [String] :source Filter by post source: late (posted via Zernio API), external (synced from platform), all (default)
|
|
43
44
|
# @option opts [Date] :from_date Inclusive lower bound (YYYY-MM-DD). Defaults to 90 days ago if omitted. Max range is 366 days.
|
|
44
45
|
# @option opts [Date] :to_date Inclusive upper bound (YYYY-MM-DD). Defaults to today if omitted.
|
|
@@ -87,6 +88,7 @@ describe 'AnalyticsApi' do
|
|
|
87
88
|
# @param [Hash] opts the optional parameters
|
|
88
89
|
# @option opts [String] :platform Filter by platform (e.g. \"instagram\", \"tiktok\"). Omit for all platforms.
|
|
89
90
|
# @option opts [String] :profile_id Filter by profile ID. Omit for all profiles.
|
|
91
|
+
# @option opts [String] :account_id Filter by social account ID
|
|
90
92
|
# @option opts [Time] :from_date Inclusive start date (ISO 8601). Defaults to 180 days ago.
|
|
91
93
|
# @option opts [Time] :to_date Inclusive end date (ISO 8601). Defaults to now.
|
|
92
94
|
# @option opts [String] :source Filter by post origin. \"late\" for posts published via Zernio, \"external\" for posts imported from platforms.
|