appwrite 7.0.0.pre.RC2 → 7.1.0

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.
@@ -24,8 +24,12 @@ module Appwrite
24
24
  #
25
25
  # @return []
26
26
  def get_browser(code:, width: nil, height: nil, quality: nil)
27
-
28
27
  path = '/avatars/browsers/{code}'
28
+ .gsub('{code}', code)
29
+
30
+ if code.nil?
31
+ raise Appwrite::Exception.new('Missing required parameter: "code"')
32
+ end
29
33
 
30
34
  params = {
31
35
  width: width,
@@ -36,11 +40,6 @@ module Appwrite
36
40
  headers = {
37
41
  "content-type": 'application/json',
38
42
  }
39
- if code.nil?
40
- raise Appwrite::Exception.new('Missing required parameter: "code"')
41
- end
42
-
43
- .gsub('{code}', code)
44
43
 
45
44
  @client.call(
46
45
  method: 'GET',
@@ -68,8 +67,12 @@ module Appwrite
68
67
  #
69
68
  # @return []
70
69
  def get_credit_card(code:, width: nil, height: nil, quality: nil)
71
-
72
70
  path = '/avatars/credit-cards/{code}'
71
+ .gsub('{code}', code)
72
+
73
+ if code.nil?
74
+ raise Appwrite::Exception.new('Missing required parameter: "code"')
75
+ end
73
76
 
74
77
  params = {
75
78
  width: width,
@@ -80,11 +83,6 @@ module Appwrite
80
83
  headers = {
81
84
  "content-type": 'application/json',
82
85
  }
83
- if code.nil?
84
- raise Appwrite::Exception.new('Missing required parameter: "code"')
85
- end
86
-
87
- .gsub('{code}', code)
88
86
 
89
87
  @client.call(
90
88
  method: 'GET',
@@ -103,9 +101,12 @@ module Appwrite
103
101
  #
104
102
  # @return []
105
103
  def get_favicon(url:)
106
-
107
104
  path = '/avatars/favicon'
108
105
 
106
+ if url.nil?
107
+ raise Appwrite::Exception.new('Missing required parameter: "url"')
108
+ end
109
+
109
110
  params = {
110
111
  url: url,
111
112
  }
@@ -113,10 +114,6 @@ module Appwrite
113
114
  headers = {
114
115
  "content-type": 'application/json',
115
116
  }
116
- if url.nil?
117
- raise Appwrite::Exception.new('Missing required parameter: "url"')
118
- end
119
-
120
117
 
121
118
  @client.call(
122
119
  method: 'GET',
@@ -145,8 +142,12 @@ module Appwrite
145
142
  #
146
143
  # @return []
147
144
  def get_flag(code:, width: nil, height: nil, quality: nil)
148
-
149
145
  path = '/avatars/flags/{code}'
146
+ .gsub('{code}', code)
147
+
148
+ if code.nil?
149
+ raise Appwrite::Exception.new('Missing required parameter: "code"')
150
+ end
150
151
 
151
152
  params = {
152
153
  width: width,
@@ -157,11 +158,6 @@ module Appwrite
157
158
  headers = {
158
159
  "content-type": 'application/json',
159
160
  }
160
- if code.nil?
161
- raise Appwrite::Exception.new('Missing required parameter: "code"')
162
- end
163
-
164
- .gsub('{code}', code)
165
161
 
166
162
  @client.call(
167
163
  method: 'GET',
@@ -189,9 +185,12 @@ module Appwrite
189
185
  #
190
186
  # @return []
191
187
  def get_image(url:, width: nil, height: nil)
192
-
193
188
  path = '/avatars/image'
194
189
 
190
+ if url.nil?
191
+ raise Appwrite::Exception.new('Missing required parameter: "url"')
192
+ end
193
+
195
194
  params = {
196
195
  url: url,
197
196
  width: width,
@@ -201,10 +200,6 @@ module Appwrite
201
200
  headers = {
202
201
  "content-type": 'application/json',
203
202
  }
204
- if url.nil?
205
- raise Appwrite::Exception.new('Missing required parameter: "url"')
206
- end
207
-
208
203
 
209
204
  @client.call(
210
205
  method: 'GET',
@@ -239,7 +234,6 @@ module Appwrite
239
234
  #
240
235
  # @return []
241
236
  def get_initials(name: nil, width: nil, height: nil, background: nil)
242
-
243
237
  path = '/avatars/initials'
244
238
 
245
239
  params = {
@@ -273,9 +267,12 @@ module Appwrite
273
267
  #
274
268
  # @return []
275
269
  def get_qr(text:, size: nil, margin: nil, download: nil)
276
-
277
270
  path = '/avatars/qr'
278
271
 
272
+ if text.nil?
273
+ raise Appwrite::Exception.new('Missing required parameter: "text"')
274
+ end
275
+
279
276
  params = {
280
277
  text: text,
281
278
  size: size,
@@ -286,10 +283,6 @@ module Appwrite
286
283
  headers = {
287
284
  "content-type": 'application/json',
288
285
  }
289
- if text.nil?
290
- raise Appwrite::Exception.new('Missing required parameter: "text"')
291
- end
292
-
293
286
 
294
287
  @client.call(
295
288
  method: 'GET',