late-sdk 0.0.103 → 0.0.104

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.
Files changed (131) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +0 -52
  3. data/lib/late-sdk/version.rb +1 -1
  4. data/lib/late-sdk.rb +0 -41
  5. data/openapi.yaml +1 -731
  6. data/zernio-sdk-0.0.104.gem +0 -0
  7. metadata +2 -166
  8. data/docs/CaptionResponse.md +0 -18
  9. data/docs/CheckInstagramHashtags200Response.md +0 -22
  10. data/docs/CheckInstagramHashtags200ResponseResultsInner.md +0 -24
  11. data/docs/CheckInstagramHashtags200ResponseSummary.md +0 -22
  12. data/docs/CheckInstagramHashtagsRequest.md +0 -18
  13. data/docs/DownloadBlueskyMedia200Response.md +0 -26
  14. data/docs/DownloadFacebookVideo200Response.md +0 -24
  15. data/docs/DownloadFormat.md +0 -26
  16. data/docs/DownloadInstagramMedia200Response.md +0 -22
  17. data/docs/DownloadResponse.md +0 -26
  18. data/docs/DownloadTikTokVideo200Response.md +0 -24
  19. data/docs/DownloadTikTokVideo200ResponseFormatsInner.md +0 -22
  20. data/docs/DownloadYouTubeVideo200Response.md +0 -24
  21. data/docs/DownloadYouTubeVideo200ResponseFormatsInner.md +0 -28
  22. data/docs/GetYouTubeTranscript200Response.md +0 -26
  23. data/docs/GetYouTubeTranscript200ResponseSegmentsInner.md +0 -22
  24. data/docs/HashtagCheckResponse.md +0 -18
  25. data/docs/HashtagInfo.md +0 -22
  26. data/docs/ToolsApi.md +0 -663
  27. data/docs/TranscriptResponse.md +0 -22
  28. data/docs/TranscriptSegment.md +0 -22
  29. data/docs/ValidateApi.md +0 -287
  30. data/docs/ValidateMedia200Response.md +0 -32
  31. data/docs/ValidateMedia200ResponsePlatformLimitsValue.md +0 -22
  32. data/docs/ValidateMediaRequest.md +0 -18
  33. data/docs/ValidatePost200Response.md +0 -49
  34. data/docs/ValidatePost200ResponseOneOf.md +0 -22
  35. data/docs/ValidatePost200ResponseOneOf1.md +0 -22
  36. data/docs/ValidatePost200ResponseOneOf1ErrorsInner.md +0 -20
  37. data/docs/ValidatePost200ResponseOneOfWarningsInner.md +0 -20
  38. data/docs/ValidatePostLength200Response.md +0 -20
  39. data/docs/ValidatePostLength200ResponsePlatformsValue.md +0 -22
  40. data/docs/ValidatePostLengthRequest.md +0 -18
  41. data/docs/ValidatePostRequest.md +0 -22
  42. data/docs/ValidatePostRequestMediaItemsInner.md +0 -20
  43. data/docs/ValidatePostRequestPlatformsInner.md +0 -24
  44. data/docs/ValidatePostRequestPlatformsInnerCustomMediaInner.md +0 -20
  45. data/docs/ValidateSubreddit200Response.md +0 -49
  46. data/docs/ValidateSubreddit200ResponseOneOf.md +0 -20
  47. data/docs/ValidateSubreddit200ResponseOneOf1.md +0 -20
  48. data/docs/ValidateSubreddit200ResponseOneOfSubreddit.md +0 -32
  49. data/lib/late-sdk/api/tools_api.rb +0 -649
  50. data/lib/late-sdk/api/validate_api.rb +0 -290
  51. data/lib/late-sdk/models/caption_response.rb +0 -147
  52. data/lib/late-sdk/models/check_instagram_hashtags200_response.rb +0 -167
  53. data/lib/late-sdk/models/check_instagram_hashtags200_response_results_inner.rb +0 -208
  54. data/lib/late-sdk/models/check_instagram_hashtags200_response_summary.rb +0 -165
  55. data/lib/late-sdk/models/check_instagram_hashtags_request.rb +0 -175
  56. data/lib/late-sdk/models/download_bluesky_media200_response.rb +0 -183
  57. data/lib/late-sdk/models/download_facebook_video200_response.rb +0 -174
  58. data/lib/late-sdk/models/download_format.rb +0 -183
  59. data/lib/late-sdk/models/download_instagram_media200_response.rb +0 -165
  60. data/lib/late-sdk/models/download_response.rb +0 -185
  61. data/lib/late-sdk/models/download_tik_tok_video200_response.rb +0 -176
  62. data/lib/late-sdk/models/download_tik_tok_video200_response_formats_inner.rb +0 -165
  63. data/lib/late-sdk/models/download_you_tube_video200_response.rb +0 -176
  64. data/lib/late-sdk/models/download_you_tube_video200_response_formats_inner.rb +0 -192
  65. data/lib/late-sdk/models/get_you_tube_transcript200_response.rb +0 -185
  66. data/lib/late-sdk/models/get_you_tube_transcript200_response_segments_inner.rb +0 -165
  67. data/lib/late-sdk/models/hashtag_check_response.rb +0 -149
  68. data/lib/late-sdk/models/hashtag_info.rb +0 -199
  69. data/lib/late-sdk/models/transcript_response.rb +0 -167
  70. data/lib/late-sdk/models/transcript_segment.rb +0 -165
  71. data/lib/late-sdk/models/validate_media200_response.rb +0 -249
  72. data/lib/late-sdk/models/validate_media200_response_platform_limits_value.rb +0 -166
  73. data/lib/late-sdk/models/validate_media_request.rb +0 -165
  74. data/lib/late-sdk/models/validate_post200_response.rb +0 -104
  75. data/lib/late-sdk/models/validate_post200_response_one_of.rb +0 -168
  76. data/lib/late-sdk/models/validate_post200_response_one_of1.rb +0 -170
  77. data/lib/late-sdk/models/validate_post200_response_one_of1_errors_inner.rb +0 -156
  78. data/lib/late-sdk/models/validate_post200_response_one_of_warnings_inner.rb +0 -156
  79. data/lib/late-sdk/models/validate_post_length200_response.rb +0 -158
  80. data/lib/late-sdk/models/validate_post_length200_response_platforms_value.rb +0 -168
  81. data/lib/late-sdk/models/validate_post_length_request.rb +0 -165
  82. data/lib/late-sdk/models/validate_post_request.rb +0 -189
  83. data/lib/late-sdk/models/validate_post_request_media_items_inner.rb +0 -190
  84. data/lib/late-sdk/models/validate_post_request_platforms_inner.rb +0 -217
  85. data/lib/late-sdk/models/validate_post_request_platforms_inner_custom_media_inner.rb +0 -190
  86. data/lib/late-sdk/models/validate_subreddit200_response.rb +0 -104
  87. data/lib/late-sdk/models/validate_subreddit200_response_one_of.rb +0 -157
  88. data/lib/late-sdk/models/validate_subreddit200_response_one_of1.rb +0 -157
  89. data/lib/late-sdk/models/validate_subreddit200_response_one_of_subreddit.rb +0 -244
  90. data/spec/api/tools_api_spec.rb +0 -152
  91. data/spec/api/validate_api_spec.rb +0 -83
  92. data/spec/models/caption_response_spec.rb +0 -36
  93. data/spec/models/check_instagram_hashtags200_response_results_inner_spec.rb +0 -58
  94. data/spec/models/check_instagram_hashtags200_response_spec.rb +0 -48
  95. data/spec/models/check_instagram_hashtags200_response_summary_spec.rb +0 -48
  96. data/spec/models/check_instagram_hashtags_request_spec.rb +0 -36
  97. data/spec/models/download_bluesky_media200_response_spec.rb +0 -60
  98. data/spec/models/download_facebook_video200_response_spec.rb +0 -54
  99. data/spec/models/download_format_spec.rb +0 -60
  100. data/spec/models/download_instagram_media200_response_spec.rb +0 -48
  101. data/spec/models/download_response_spec.rb +0 -60
  102. data/spec/models/download_tik_tok_video200_response_formats_inner_spec.rb +0 -48
  103. data/spec/models/download_tik_tok_video200_response_spec.rb +0 -54
  104. data/spec/models/download_you_tube_video200_response_formats_inner_spec.rb +0 -66
  105. data/spec/models/download_you_tube_video200_response_spec.rb +0 -54
  106. data/spec/models/get_you_tube_transcript200_response_segments_inner_spec.rb +0 -48
  107. data/spec/models/get_you_tube_transcript200_response_spec.rb +0 -60
  108. data/spec/models/hashtag_check_response_spec.rb +0 -36
  109. data/spec/models/hashtag_info_spec.rb +0 -52
  110. data/spec/models/transcript_response_spec.rb +0 -48
  111. data/spec/models/transcript_segment_spec.rb +0 -48
  112. data/spec/models/validate_media200_response_platform_limits_value_spec.rb +0 -48
  113. data/spec/models/validate_media200_response_spec.rb +0 -82
  114. data/spec/models/validate_media_request_spec.rb +0 -36
  115. data/spec/models/validate_post200_response_one_of1_errors_inner_spec.rb +0 -42
  116. data/spec/models/validate_post200_response_one_of1_spec.rb +0 -48
  117. data/spec/models/validate_post200_response_one_of_spec.rb +0 -48
  118. data/spec/models/validate_post200_response_one_of_warnings_inner_spec.rb +0 -42
  119. data/spec/models/validate_post200_response_spec.rb +0 -32
  120. data/spec/models/validate_post_length200_response_platforms_value_spec.rb +0 -48
  121. data/spec/models/validate_post_length200_response_spec.rb +0 -42
  122. data/spec/models/validate_post_length_request_spec.rb +0 -36
  123. data/spec/models/validate_post_request_media_items_inner_spec.rb +0 -46
  124. data/spec/models/validate_post_request_platforms_inner_custom_media_inner_spec.rb +0 -46
  125. data/spec/models/validate_post_request_platforms_inner_spec.rb +0 -58
  126. data/spec/models/validate_post_request_spec.rb +0 -48
  127. data/spec/models/validate_subreddit200_response_one_of1_spec.rb +0 -42
  128. data/spec/models/validate_subreddit200_response_one_of_spec.rb +0 -42
  129. data/spec/models/validate_subreddit200_response_one_of_subreddit_spec.rb +0 -82
  130. data/spec/models/validate_subreddit200_response_spec.rb +0 -32
  131. data/zernio-sdk-0.0.103.gem +0 -0
@@ -1,157 +0,0 @@
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 'date'
14
- require 'time'
15
-
16
- module Late
17
- # Subreddit exists
18
- class ValidateSubreddit200ResponseOneOf < ApiModelBase
19
- attr_accessor :exists
20
-
21
- attr_accessor :subreddit
22
-
23
- # Attribute mapping from ruby-style variable name to JSON key.
24
- def self.attribute_map
25
- {
26
- :'exists' => :'exists',
27
- :'subreddit' => :'subreddit'
28
- }
29
- end
30
-
31
- # Returns attribute mapping this model knows about
32
- def self.acceptable_attribute_map
33
- attribute_map
34
- end
35
-
36
- # Returns all the JSON keys this model knows about
37
- def self.acceptable_attributes
38
- acceptable_attribute_map.values
39
- end
40
-
41
- # Attribute type mapping.
42
- def self.openapi_types
43
- {
44
- :'exists' => :'Boolean',
45
- :'subreddit' => :'ValidateSubreddit200ResponseOneOfSubreddit'
46
- }
47
- end
48
-
49
- # List of attributes with nullable: true
50
- def self.openapi_nullable
51
- Set.new([
52
- ])
53
- end
54
-
55
- # Initializes the object
56
- # @param [Hash] attributes Model attributes in the form of hash
57
- def initialize(attributes = {})
58
- if (!attributes.is_a?(Hash))
59
- fail ArgumentError, "The input argument (attributes) must be a hash in `Late::ValidateSubreddit200ResponseOneOf` initialize method"
60
- end
61
-
62
- # check to see if the attribute exists and convert string to symbol for hash key
63
- acceptable_attribute_map = self.class.acceptable_attribute_map
64
- attributes = attributes.each_with_object({}) { |(k, v), h|
65
- if (!acceptable_attribute_map.key?(k.to_sym))
66
- fail ArgumentError, "`#{k}` is not a valid attribute in `Late::ValidateSubreddit200ResponseOneOf`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
67
- end
68
- h[k.to_sym] = v
69
- }
70
-
71
- if attributes.key?(:'exists')
72
- self.exists = attributes[:'exists']
73
- end
74
-
75
- if attributes.key?(:'subreddit')
76
- self.subreddit = attributes[:'subreddit']
77
- end
78
- end
79
-
80
- # Show invalid properties with the reasons. Usually used together with valid?
81
- # @return Array for valid properties with the reasons
82
- def list_invalid_properties
83
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
84
- invalid_properties = Array.new
85
- invalid_properties
86
- end
87
-
88
- # Check to see if the all the properties in the model are valid
89
- # @return true if the model is valid
90
- def valid?
91
- warn '[DEPRECATED] the `valid?` method is obsolete'
92
- true
93
- end
94
-
95
- # Checks equality by comparing each attribute.
96
- # @param [Object] Object to be compared
97
- def ==(o)
98
- return true if self.equal?(o)
99
- self.class == o.class &&
100
- exists == o.exists &&
101
- subreddit == o.subreddit
102
- end
103
-
104
- # @see the `==` method
105
- # @param [Object] Object to be compared
106
- def eql?(o)
107
- self == o
108
- end
109
-
110
- # Calculates hash code according to all attributes.
111
- # @return [Integer] Hash code
112
- def hash
113
- [exists, subreddit].hash
114
- end
115
-
116
- # Builds the object from hash
117
- # @param [Hash] attributes Model attributes in the form of hash
118
- # @return [Object] Returns the model itself
119
- def self.build_from_hash(attributes)
120
- return nil unless attributes.is_a?(Hash)
121
- attributes = attributes.transform_keys(&:to_sym)
122
- transformed_hash = {}
123
- openapi_types.each_pair do |key, type|
124
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
125
- transformed_hash["#{key}"] = nil
126
- elsif type =~ /\AArray<(.*)>/i
127
- # check to ensure the input is an array given that the attribute
128
- # is documented as an array but the input is not
129
- if attributes[attribute_map[key]].is_a?(Array)
130
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
131
- end
132
- elsif !attributes[attribute_map[key]].nil?
133
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
134
- end
135
- end
136
- new(transformed_hash)
137
- end
138
-
139
- # Returns the object in the form of hash
140
- # @return [Hash] Returns the object in the form of hash
141
- def to_hash
142
- hash = {}
143
- self.class.attribute_map.each_pair do |attr, param|
144
- value = self.send(attr)
145
- if value.nil?
146
- is_nullable = self.class.openapi_nullable.include?(attr)
147
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
148
- end
149
-
150
- hash[param] = _to_hash(value)
151
- end
152
- hash
153
- end
154
-
155
- end
156
-
157
- end
@@ -1,157 +0,0 @@
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 'date'
14
- require 'time'
15
-
16
- module Late
17
- # Subreddit not found
18
- class ValidateSubreddit200ResponseOneOf1 < ApiModelBase
19
- attr_accessor :exists
20
-
21
- attr_accessor :error
22
-
23
- # Attribute mapping from ruby-style variable name to JSON key.
24
- def self.attribute_map
25
- {
26
- :'exists' => :'exists',
27
- :'error' => :'error'
28
- }
29
- end
30
-
31
- # Returns attribute mapping this model knows about
32
- def self.acceptable_attribute_map
33
- attribute_map
34
- end
35
-
36
- # Returns all the JSON keys this model knows about
37
- def self.acceptable_attributes
38
- acceptable_attribute_map.values
39
- end
40
-
41
- # Attribute type mapping.
42
- def self.openapi_types
43
- {
44
- :'exists' => :'Boolean',
45
- :'error' => :'String'
46
- }
47
- end
48
-
49
- # List of attributes with nullable: true
50
- def self.openapi_nullable
51
- Set.new([
52
- ])
53
- end
54
-
55
- # Initializes the object
56
- # @param [Hash] attributes Model attributes in the form of hash
57
- def initialize(attributes = {})
58
- if (!attributes.is_a?(Hash))
59
- fail ArgumentError, "The input argument (attributes) must be a hash in `Late::ValidateSubreddit200ResponseOneOf1` initialize method"
60
- end
61
-
62
- # check to see if the attribute exists and convert string to symbol for hash key
63
- acceptable_attribute_map = self.class.acceptable_attribute_map
64
- attributes = attributes.each_with_object({}) { |(k, v), h|
65
- if (!acceptable_attribute_map.key?(k.to_sym))
66
- fail ArgumentError, "`#{k}` is not a valid attribute in `Late::ValidateSubreddit200ResponseOneOf1`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
67
- end
68
- h[k.to_sym] = v
69
- }
70
-
71
- if attributes.key?(:'exists')
72
- self.exists = attributes[:'exists']
73
- end
74
-
75
- if attributes.key?(:'error')
76
- self.error = attributes[:'error']
77
- end
78
- end
79
-
80
- # Show invalid properties with the reasons. Usually used together with valid?
81
- # @return Array for valid properties with the reasons
82
- def list_invalid_properties
83
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
84
- invalid_properties = Array.new
85
- invalid_properties
86
- end
87
-
88
- # Check to see if the all the properties in the model are valid
89
- # @return true if the model is valid
90
- def valid?
91
- warn '[DEPRECATED] the `valid?` method is obsolete'
92
- true
93
- end
94
-
95
- # Checks equality by comparing each attribute.
96
- # @param [Object] Object to be compared
97
- def ==(o)
98
- return true if self.equal?(o)
99
- self.class == o.class &&
100
- exists == o.exists &&
101
- error == o.error
102
- end
103
-
104
- # @see the `==` method
105
- # @param [Object] Object to be compared
106
- def eql?(o)
107
- self == o
108
- end
109
-
110
- # Calculates hash code according to all attributes.
111
- # @return [Integer] Hash code
112
- def hash
113
- [exists, error].hash
114
- end
115
-
116
- # Builds the object from hash
117
- # @param [Hash] attributes Model attributes in the form of hash
118
- # @return [Object] Returns the model itself
119
- def self.build_from_hash(attributes)
120
- return nil unless attributes.is_a?(Hash)
121
- attributes = attributes.transform_keys(&:to_sym)
122
- transformed_hash = {}
123
- openapi_types.each_pair do |key, type|
124
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
125
- transformed_hash["#{key}"] = nil
126
- elsif type =~ /\AArray<(.*)>/i
127
- # check to ensure the input is an array given that the attribute
128
- # is documented as an array but the input is not
129
- if attributes[attribute_map[key]].is_a?(Array)
130
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
131
- end
132
- elsif !attributes[attribute_map[key]].nil?
133
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
134
- end
135
- end
136
- new(transformed_hash)
137
- end
138
-
139
- # Returns the object in the form of hash
140
- # @return [Hash] Returns the object in the form of hash
141
- def to_hash
142
- hash = {}
143
- self.class.attribute_map.each_pair do |attr, param|
144
- value = self.send(attr)
145
- if value.nil?
146
- is_nullable = self.class.openapi_nullable.include?(attr)
147
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
148
- end
149
-
150
- hash[param] = _to_hash(value)
151
- end
152
- hash
153
- end
154
-
155
- end
156
-
157
- end
@@ -1,244 +0,0 @@
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 'date'
14
- require 'time'
15
-
16
- module Late
17
- class ValidateSubreddit200ResponseOneOfSubreddit < ApiModelBase
18
- attr_accessor :name
19
-
20
- attr_accessor :title
21
-
22
- attr_accessor :description
23
-
24
- attr_accessor :subscribers
25
-
26
- attr_accessor :is_nsfw
27
-
28
- attr_accessor :type
29
-
30
- attr_accessor :allow_images
31
-
32
- attr_accessor :allow_videos
33
-
34
- class EnumAttributeValidator
35
- attr_reader :datatype
36
- attr_reader :allowable_values
37
-
38
- def initialize(datatype, allowable_values)
39
- @allowable_values = allowable_values.map do |value|
40
- case datatype.to_s
41
- when /Integer/i
42
- value.to_i
43
- when /Float/i
44
- value.to_f
45
- else
46
- value
47
- end
48
- end
49
- end
50
-
51
- def valid?(value)
52
- !value || allowable_values.include?(value)
53
- end
54
- end
55
-
56
- # Attribute mapping from ruby-style variable name to JSON key.
57
- def self.attribute_map
58
- {
59
- :'name' => :'name',
60
- :'title' => :'title',
61
- :'description' => :'description',
62
- :'subscribers' => :'subscribers',
63
- :'is_nsfw' => :'isNSFW',
64
- :'type' => :'type',
65
- :'allow_images' => :'allowImages',
66
- :'allow_videos' => :'allowVideos'
67
- }
68
- end
69
-
70
- # Returns attribute mapping this model knows about
71
- def self.acceptable_attribute_map
72
- attribute_map
73
- end
74
-
75
- # Returns all the JSON keys this model knows about
76
- def self.acceptable_attributes
77
- acceptable_attribute_map.values
78
- end
79
-
80
- # Attribute type mapping.
81
- def self.openapi_types
82
- {
83
- :'name' => :'String',
84
- :'title' => :'String',
85
- :'description' => :'String',
86
- :'subscribers' => :'Integer',
87
- :'is_nsfw' => :'Boolean',
88
- :'type' => :'String',
89
- :'allow_images' => :'Boolean',
90
- :'allow_videos' => :'Boolean'
91
- }
92
- end
93
-
94
- # List of attributes with nullable: true
95
- def self.openapi_nullable
96
- Set.new([
97
- ])
98
- end
99
-
100
- # Initializes the object
101
- # @param [Hash] attributes Model attributes in the form of hash
102
- def initialize(attributes = {})
103
- if (!attributes.is_a?(Hash))
104
- fail ArgumentError, "The input argument (attributes) must be a hash in `Late::ValidateSubreddit200ResponseOneOfSubreddit` initialize method"
105
- end
106
-
107
- # check to see if the attribute exists and convert string to symbol for hash key
108
- acceptable_attribute_map = self.class.acceptable_attribute_map
109
- attributes = attributes.each_with_object({}) { |(k, v), h|
110
- if (!acceptable_attribute_map.key?(k.to_sym))
111
- fail ArgumentError, "`#{k}` is not a valid attribute in `Late::ValidateSubreddit200ResponseOneOfSubreddit`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
112
- end
113
- h[k.to_sym] = v
114
- }
115
-
116
- if attributes.key?(:'name')
117
- self.name = attributes[:'name']
118
- end
119
-
120
- if attributes.key?(:'title')
121
- self.title = attributes[:'title']
122
- end
123
-
124
- if attributes.key?(:'description')
125
- self.description = attributes[:'description']
126
- end
127
-
128
- if attributes.key?(:'subscribers')
129
- self.subscribers = attributes[:'subscribers']
130
- end
131
-
132
- if attributes.key?(:'is_nsfw')
133
- self.is_nsfw = attributes[:'is_nsfw']
134
- end
135
-
136
- if attributes.key?(:'type')
137
- self.type = attributes[:'type']
138
- end
139
-
140
- if attributes.key?(:'allow_images')
141
- self.allow_images = attributes[:'allow_images']
142
- end
143
-
144
- if attributes.key?(:'allow_videos')
145
- self.allow_videos = attributes[:'allow_videos']
146
- end
147
- end
148
-
149
- # Show invalid properties with the reasons. Usually used together with valid?
150
- # @return Array for valid properties with the reasons
151
- def list_invalid_properties
152
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
153
- invalid_properties = Array.new
154
- invalid_properties
155
- end
156
-
157
- # Check to see if the all the properties in the model are valid
158
- # @return true if the model is valid
159
- def valid?
160
- warn '[DEPRECATED] the `valid?` method is obsolete'
161
- type_validator = EnumAttributeValidator.new('String', ["public", "private", "restricted"])
162
- return false unless type_validator.valid?(@type)
163
- true
164
- end
165
-
166
- # Custom attribute writer method checking allowed values (enum).
167
- # @param [Object] type Object to be assigned
168
- def type=(type)
169
- validator = EnumAttributeValidator.new('String', ["public", "private", "restricted"])
170
- unless validator.valid?(type)
171
- fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
172
- end
173
- @type = type
174
- end
175
-
176
- # Checks equality by comparing each attribute.
177
- # @param [Object] Object to be compared
178
- def ==(o)
179
- return true if self.equal?(o)
180
- self.class == o.class &&
181
- name == o.name &&
182
- title == o.title &&
183
- description == o.description &&
184
- subscribers == o.subscribers &&
185
- is_nsfw == o.is_nsfw &&
186
- type == o.type &&
187
- allow_images == o.allow_images &&
188
- allow_videos == o.allow_videos
189
- end
190
-
191
- # @see the `==` method
192
- # @param [Object] Object to be compared
193
- def eql?(o)
194
- self == o
195
- end
196
-
197
- # Calculates hash code according to all attributes.
198
- # @return [Integer] Hash code
199
- def hash
200
- [name, title, description, subscribers, is_nsfw, type, allow_images, allow_videos].hash
201
- end
202
-
203
- # Builds the object from hash
204
- # @param [Hash] attributes Model attributes in the form of hash
205
- # @return [Object] Returns the model itself
206
- def self.build_from_hash(attributes)
207
- return nil unless attributes.is_a?(Hash)
208
- attributes = attributes.transform_keys(&:to_sym)
209
- transformed_hash = {}
210
- openapi_types.each_pair do |key, type|
211
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
212
- transformed_hash["#{key}"] = nil
213
- elsif type =~ /\AArray<(.*)>/i
214
- # check to ensure the input is an array given that the attribute
215
- # is documented as an array but the input is not
216
- if attributes[attribute_map[key]].is_a?(Array)
217
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
218
- end
219
- elsif !attributes[attribute_map[key]].nil?
220
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
221
- end
222
- end
223
- new(transformed_hash)
224
- end
225
-
226
- # Returns the object in the form of hash
227
- # @return [Hash] Returns the object in the form of hash
228
- def to_hash
229
- hash = {}
230
- self.class.attribute_map.each_pair do |attr, param|
231
- value = self.send(attr)
232
- if value.nil?
233
- is_nullable = self.class.openapi_nullable.include?(attr)
234
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
235
- end
236
-
237
- hash[param] = _to_hash(value)
238
- end
239
- hash
240
- end
241
-
242
- end
243
-
244
- end
@@ -1,152 +0,0 @@
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
-
16
- # Unit tests for Late::ToolsApi
17
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
- # Please update as you see appropriate
19
- describe 'ToolsApi' do
20
- before do
21
- # run before each test
22
- @api_instance = Late::ToolsApi.new
23
- end
24
-
25
- after do
26
- # run after each test
27
- end
28
-
29
- describe 'test an instance of ToolsApi' do
30
- it 'should create an instance of ToolsApi' do
31
- expect(@api_instance).to be_instance_of(Late::ToolsApi)
32
- end
33
- end
34
-
35
- # unit tests for check_instagram_hashtags
36
- # Check IG hashtag bans
37
- # Check if Instagram hashtags are banned, restricted, or safe to use. Rate limits: Build (50/day), Accelerate (500/day), Unlimited (unlimited).
38
- # @param check_instagram_hashtags_request
39
- # @param [Hash] opts the optional parameters
40
- # @return [CheckInstagramHashtags200Response]
41
- describe 'check_instagram_hashtags test' do
42
- it 'should work' do
43
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
44
- end
45
- end
46
-
47
- # unit tests for download_bluesky_media
48
- # Download Bluesky media
49
- # Download videos from Bluesky posts. Rate limits: Build (50/day), Accelerate (500/day), Unlimited (unlimited).
50
- # @param url Bluesky post URL
51
- # @param [Hash] opts the optional parameters
52
- # @return [DownloadBlueskyMedia200Response]
53
- describe 'download_bluesky_media test' do
54
- it 'should work' do
55
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
56
- end
57
- end
58
-
59
- # unit tests for download_facebook_video
60
- # Download Facebook video
61
- # Download videos and reels from Facebook. Rate limits: Build (50/day), Accelerate (500/day), Unlimited (unlimited).
62
- # @param url Facebook video or reel URL
63
- # @param [Hash] opts the optional parameters
64
- # @return [DownloadFacebookVideo200Response]
65
- describe 'download_facebook_video test' do
66
- it 'should work' do
67
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
68
- end
69
- end
70
-
71
- # unit tests for download_instagram_media
72
- # Download Instagram media
73
- # Download Instagram reels, posts, or photos. Rate limits: Build (50/day), Accelerate (500/day), Unlimited (unlimited).
74
- # @param url Instagram reel or post URL
75
- # @param [Hash] opts the optional parameters
76
- # @return [DownloadInstagramMedia200Response]
77
- describe 'download_instagram_media test' do
78
- it 'should work' do
79
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
80
- end
81
- end
82
-
83
- # unit tests for download_linked_in_video
84
- # Download LinkedIn video
85
- # Download videos from LinkedIn posts. Rate limits: Build (50/day), Accelerate (500/day), Unlimited (unlimited).
86
- # @param url LinkedIn post URL
87
- # @param [Hash] opts the optional parameters
88
- # @return [DownloadInstagramMedia200Response]
89
- describe 'download_linked_in_video test' do
90
- it 'should work' do
91
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
92
- end
93
- end
94
-
95
- # unit tests for download_tik_tok_video
96
- # Download TikTok video
97
- # Download TikTok videos with or without watermark. Rate limits: Build (50/day), Accelerate (500/day), Unlimited (unlimited).
98
- # @param url TikTok video URL or ID
99
- # @param [Hash] opts the optional parameters
100
- # @option opts [String] :action &#39;formats&#39; to list available formats
101
- # @option opts [String] :format_id Specific format ID (0 &#x3D; no watermark, etc.)
102
- # @return [DownloadTikTokVideo200Response]
103
- describe 'download_tik_tok_video test' do
104
- it 'should work' do
105
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
106
- end
107
- end
108
-
109
- # unit tests for download_twitter_media
110
- # Download Twitter/X media
111
- # Download videos from Twitter/X posts. Rate limits: Build (50/day), Accelerate (500/day), Unlimited (unlimited).
112
- # @param url Twitter/X post URL
113
- # @param [Hash] opts the optional parameters
114
- # @option opts [String] :action
115
- # @option opts [String] :format_id
116
- # @return [DownloadInstagramMedia200Response]
117
- describe 'download_twitter_media test' do
118
- it 'should work' do
119
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
120
- end
121
- end
122
-
123
- # unit tests for download_you_tube_video
124
- # Download YouTube video
125
- # Download YouTube videos or audio. Returns available formats or direct download URL. Rate limits: Build (50/day), Accelerate (500/day), Unlimited (unlimited).
126
- # @param url YouTube video URL or video ID
127
- # @param [Hash] opts the optional parameters
128
- # @option opts [String] :action Action to perform: &#39;download&#39; returns download URL, &#39;formats&#39; lists available formats
129
- # @option opts [String] :format Desired format (when action&#x3D;download)
130
- # @option opts [String] :quality Desired quality (when action&#x3D;download)
131
- # @option opts [String] :format_id Specific format ID from formats list
132
- # @return [DownloadYouTubeVideo200Response]
133
- describe 'download_you_tube_video test' do
134
- it 'should work' do
135
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
136
- end
137
- end
138
-
139
- # unit tests for get_you_tube_transcript
140
- # Get YouTube transcript
141
- # Extract transcript/captions from a YouTube video. Rate limits: Build (50/day), Accelerate (500/day), Unlimited (unlimited).
142
- # @param url YouTube video URL or video ID
143
- # @param [Hash] opts the optional parameters
144
- # @option opts [String] :lang Language code for transcript
145
- # @return [GetYouTubeTranscript200Response]
146
- describe 'get_you_tube_transcript test' do
147
- it 'should work' do
148
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
149
- end
150
- end
151
-
152
- end