@@ -48,7 +48,7 @@ filesList.get(withQuery: query) { list, error in
48
48
return
49
49
}
50
50
51
- print (list ?? " " )
51
+ print (list as Any )
52
52
}
53
53
```
54
54
@@ -63,7 +63,7 @@ filesList.nextPage { list, error in
63
63
print (error)
64
64
return
65
65
}
66
- print (list ?? " " )
66
+ print (list as Any )
67
67
}
68
68
```
69
69
@@ -78,7 +78,7 @@ filesList.previousPage { list, error in
78
78
print (error)
79
79
return
80
80
}
81
- print (list ?? " " )
81
+ print (list as Any )
82
82
}
83
83
```
84
84
@@ -90,7 +90,7 @@ uploadcare.fileInfo(withUUID: "1bac376c-aa7e-4356-861b-dd2657b5bfd2") { file, er
90
90
print (error)
91
91
return
92
92
}
93
- print (file ?? " " )
93
+ print (file as Any )
94
94
}
95
95
```
96
96
@@ -104,7 +104,7 @@ uploadcare.storeFile(withUUID: "1bac376c-aa7e-4356-861b-dd2657b5bfd2") { file, e
104
104
print (error)
105
105
return
106
106
}
107
- print (file ?? " " )
107
+ print (file as Any )
108
108
}
109
109
```
110
110
@@ -117,7 +117,7 @@ uploadcare.storeFiles(withUUIDs: uuids) { response, error in
117
117
print (error)
118
118
return
119
119
}
120
- print (response ?? " " )
120
+ print (response as Any )
121
121
}
122
122
```
123
123
@@ -131,7 +131,7 @@ uploadcare.deleteFile(withUUID: "1bac376c-aa7e-4356-861b-dd2657b5bfd2") { file,
131
131
print (error)
132
132
return
133
133
}
134
- print (file ?? " " )
134
+ print (file as Any )
135
135
}
136
136
```
137
137
@@ -144,7 +144,7 @@ uploadcare.deleteFiles(withUUIDs: uuids) { response, error in
144
144
print (error)
145
145
return
146
146
}
147
- print (response ?? " " )
147
+ print (response as Any )
148
148
}
149
149
```
150
150
@@ -156,7 +156,7 @@ uploadcare.copyFileToLocalStorage(source: "6ca619a8-70a7-4777-8de1-7d07739ebbd9"
156
156
print (error)
157
157
return
158
158
}
159
- print (response ?? " " )
159
+ print (response as Any )
160
160
}
161
161
```
162
162
@@ -169,7 +169,7 @@ uploadcare.copyFileToRemoteStorage(source: source, target: "one_more_project", m
169
169
print (error)
170
170
return
171
171
}
172
- print (response ?? " " )
172
+ print (response as Any )
173
173
}
174
174
```
175
175
@@ -185,7 +185,7 @@ uploadcare.listOfGroups(withQuery: query) { list, error in
185
185
print (error)
186
186
return
187
187
}
188
- print (list ?? " " )
188
+ print (list as Any )
189
189
}
190
190
191
191
// Using a GroupsList object
@@ -196,7 +196,7 @@ groupsList.get(withQuery: query) { list, error in
196
196
print (error)
197
197
return
198
198
}
199
- print (list ?? " " )
199
+ print (list as Any )
200
200
}
201
201
202
202
// Get the next page
@@ -205,14 +205,15 @@ groupsList.nextPage { list, error in
205
205
print (error)
206
206
return
207
207
}
208
- }
208
+ }
209
+
209
210
// Get the previous page
210
211
groupsList.previousPage { list, error in
211
212
if let error = error {
212
213
print (error)
213
214
return
214
215
}
215
- print (list ?? " " )
216
+ print (list as Any )
216
217
}
217
218
```
218
219
@@ -224,7 +225,7 @@ uploadcare.groupInfo(withUUID: "c5bec8c7-d4b6-4921-9e55-6edb027546bc~1") { group
224
225
print (error)
225
226
return
226
227
}
227
- print (group ?? " " )
228
+ print (group as Any )
228
229
}
229
230
```
230
231
@@ -248,7 +249,7 @@ uploadcare.getProjectInfo { project, error in
248
249
print (error)
249
250
return
250
251
}
251
- print (project ?? " " )
252
+ print (project as Any )
252
253
}
253
254
```
254
255
@@ -268,7 +269,7 @@ uploadcare.getAuthenticatedUrlFromUrl(url) { value, error in
268
269
}
269
270
270
271
// Value is https://cdn.yourdomain.com/{uuid}/?token={token}&expire={timestamp}
271
- print (value)
272
+ print (value as Any )
272
273
})
273
274
```
274
275
@@ -281,7 +282,7 @@ uploadcare.getListOfWebhooks { value, error in
281
282
return
282
283
}
283
284
284
- print (value)
285
+ print (value as Any )
285
286
}
286
287
```
287
288
@@ -297,7 +298,7 @@ uploadcare.createWebhook(targetUrl: url, isActive: true, signingSecret: "someSig
297
298
return
298
299
}
299
300
300
- print (value)
301
+ print (value as Any )
301
302
}
302
303
```
303
304
@@ -313,7 +314,7 @@ uploadcare.updateWebhook(id: "webhookId", targetUrl: url, isActive: true, signin
313
314
return
314
315
}
315
316
316
- print (value)
317
+ print (value as Any )
317
318
}
318
319
```
319
320
@@ -346,7 +347,7 @@ uploadcare.convertDocumentsWithSettings([task1, task2]) { response, error in
346
347
return
347
348
}
348
349
349
- print (response)
350
+ print (response as Any )
350
351
}
351
352
```
352
353
@@ -359,7 +360,7 @@ uploadcare.convertDocuments([":uuid/document/-/format/:target-format/"]) { respo
359
360
return
360
361
}
361
362
362
- print (response)
363
+ print (response as Any )
363
364
}
364
365
```
365
366
@@ -372,7 +373,7 @@ uploadcare.documentConversionJobStatus(token: 123456) { job, error in
372
373
return
373
374
}
374
375
375
- print (job)
376
+ print (job as Any )
376
377
377
378
switch job.status {
378
379
case .failed (let conversionError):
@@ -405,7 +406,7 @@ uploadcare.convertVideosWithSettings([task1, task2]) { response, error in
405
406
return
406
407
}
407
408
408
- print (response)
409
+ print (response as Any )
409
410
}
410
411
```
411
412
@@ -418,7 +419,7 @@ uploadcare.convertVideos([":uuid/video/-/format/ogg/"]) { response, error in
418
419
return
419
420
}
420
421
421
- print (response)
422
+ print (response as Any )
422
423
}
423
424
```
424
425
@@ -431,7 +432,7 @@ uploadcare.videoConversionJobStatus(token: 123456) { job, error in
431
432
return
432
433
}
433
434
434
- print (job)
435
+ print (job as Any )
435
436
436
437
switch job.status {
437
438
case .failed (let conversionError):
0 commit comments