appwrite 9.0.0 → 10.0.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.
@@ -31,21 +31,21 @@ module Appwrite
31
31
  raise Appwrite::Exception.new('Missing required parameter: "code"')
32
32
  end
33
33
 
34
- params = {
34
+ api_params = {
35
35
  width: width,
36
36
  height: height,
37
37
  quality: quality,
38
38
  }
39
39
 
40
- headers = {
40
+ api_headers = {
41
41
  "content-type": 'application/json',
42
42
  }
43
43
 
44
44
  @client.call(
45
45
  method: 'GET',
46
46
  path: api_path,
47
- headers: headers,
48
- params: params,
47
+ headers: api_headers,
48
+ params: api_params,
49
49
  )
50
50
  end
51
51
 
@@ -74,21 +74,21 @@ module Appwrite
74
74
  raise Appwrite::Exception.new('Missing required parameter: "code"')
75
75
  end
76
76
 
77
- params = {
77
+ api_params = {
78
78
  width: width,
79
79
  height: height,
80
80
  quality: quality,
81
81
  }
82
82
 
83
- headers = {
83
+ api_headers = {
84
84
  "content-type": 'application/json',
85
85
  }
86
86
 
87
87
  @client.call(
88
88
  method: 'GET',
89
89
  path: api_path,
90
- headers: headers,
91
- params: params,
90
+ headers: api_headers,
91
+ params: api_params,
92
92
  )
93
93
  end
94
94
 
@@ -107,19 +107,19 @@ module Appwrite
107
107
  raise Appwrite::Exception.new('Missing required parameter: "url"')
108
108
  end
109
109
 
110
- params = {
110
+ api_params = {
111
111
  url: url,
112
112
  }
113
113
 
114
- headers = {
114
+ api_headers = {
115
115
  "content-type": 'application/json',
116
116
  }
117
117
 
118
118
  @client.call(
119
119
  method: 'GET',
120
120
  path: api_path,
121
- headers: headers,
122
- params: params,
121
+ headers: api_headers,
122
+ params: api_params,
123
123
  )
124
124
  end
125
125
 
@@ -149,21 +149,21 @@ module Appwrite
149
149
  raise Appwrite::Exception.new('Missing required parameter: "code"')
150
150
  end
151
151
 
152
- params = {
152
+ api_params = {
153
153
  width: width,
154
154
  height: height,
155
155
  quality: quality,
156
156
  }
157
157
 
158
- headers = {
158
+ api_headers = {
159
159
  "content-type": 'application/json',
160
160
  }
161
161
 
162
162
  @client.call(
163
163
  method: 'GET',
164
164
  path: api_path,
165
- headers: headers,
166
- params: params,
165
+ headers: api_headers,
166
+ params: api_params,
167
167
  )
168
168
  end
169
169
 
@@ -191,21 +191,21 @@ module Appwrite
191
191
  raise Appwrite::Exception.new('Missing required parameter: "url"')
192
192
  end
193
193
 
194
- params = {
194
+ api_params = {
195
195
  url: url,
196
196
  width: width,
197
197
  height: height,
198
198
  }
199
199
 
200
- headers = {
200
+ api_headers = {
201
201
  "content-type": 'application/json',
202
202
  }
203
203
 
204
204
  @client.call(
205
205
  method: 'GET',
206
206
  path: api_path,
207
- headers: headers,
208
- params: params,
207
+ headers: api_headers,
208
+ params: api_params,
209
209
  )
210
210
  end
211
211
 
@@ -236,22 +236,22 @@ module Appwrite
236
236
  def get_initials(name: nil, width: nil, height: nil, background: nil)
237
237
  api_path = '/avatars/initials'
238
238
 
239
- params = {
239
+ api_params = {
240
240
  name: name,
241
241
  width: width,
242
242
  height: height,
243
243
  background: background,
244
244
  }
245
245
 
246
- headers = {
246
+ api_headers = {
247
247
  "content-type": 'application/json',
248
248
  }
249
249
 
250
250
  @client.call(
251
251
  method: 'GET',
252
252
  path: api_path,
253
- headers: headers,
254
- params: params,
253
+ headers: api_headers,
254
+ params: api_params,
255
255
  )
256
256
  end
257
257
 
@@ -273,22 +273,22 @@ module Appwrite
273
273
  raise Appwrite::Exception.new('Missing required parameter: "text"')
274
274
  end
275
275
 
276
- params = {
276
+ api_params = {
277
277
  text: text,
278
278
  size: size,
279
279
  margin: margin,
280
280
  download: download,
281
281
  }
282
282
 
283
- headers = {
283
+ api_headers = {
284
284
  "content-type": 'application/json',
285
285
  }
286
286
 
287
287
  @client.call(
288
288
  method: 'GET',
289
289
  path: api_path,
290
- headers: headers,
291
- params: params,
290
+ headers: api_headers,
291
+ params: api_params,
292
292
  )
293
293
  end
294
294