Skip to content

Commit b0d4f90

Browse files
committed
docs updated
1 parent f6d1495 commit b0d4f90

File tree

1 file changed

+27
-26
lines changed

1 file changed

+27
-26
lines changed

Documentation/REST API.md

+27-26
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ filesList.get(withQuery: query) { list, error in
4848
return
4949
}
5050

51-
print(list ?? "")
51+
print(list as Any)
5252
}
5353
```
5454

@@ -63,7 +63,7 @@ filesList.nextPage { list, error in
6363
print(error)
6464
return
6565
}
66-
print(list ?? "")
66+
print(list as Any)
6767
}
6868
```
6969

@@ -78,7 +78,7 @@ filesList.previousPage { list, error in
7878
print(error)
7979
return
8080
}
81-
print(list ?? "")
81+
print(list as Any)
8282
}
8383
```
8484

@@ -90,7 +90,7 @@ uploadcare.fileInfo(withUUID: "1bac376c-aa7e-4356-861b-dd2657b5bfd2") { file, er
9090
print(error)
9191
return
9292
}
93-
print(file ?? "")
93+
print(file as Any)
9494
}
9595
```
9696

@@ -104,7 +104,7 @@ uploadcare.storeFile(withUUID: "1bac376c-aa7e-4356-861b-dd2657b5bfd2") { file, e
104104
print(error)
105105
return
106106
}
107-
print(file ?? "")
107+
print(file as Any)
108108
}
109109
```
110110

@@ -117,7 +117,7 @@ uploadcare.storeFiles(withUUIDs: uuids) { response, error in
117117
print(error)
118118
return
119119
}
120-
print(response ?? "")
120+
print(response as Any)
121121
}
122122
```
123123

@@ -131,7 +131,7 @@ uploadcare.deleteFile(withUUID: "1bac376c-aa7e-4356-861b-dd2657b5bfd2") { file,
131131
print(error)
132132
return
133133
}
134-
print(file ?? "")
134+
print(file as Any)
135135
}
136136
```
137137

@@ -144,7 +144,7 @@ uploadcare.deleteFiles(withUUIDs: uuids) { response, error in
144144
print(error)
145145
return
146146
}
147-
print(response ?? "")
147+
print(response as Any)
148148
}
149149
```
150150

@@ -156,7 +156,7 @@ uploadcare.copyFileToLocalStorage(source: "6ca619a8-70a7-4777-8de1-7d07739ebbd9"
156156
print(error)
157157
return
158158
}
159-
print(response ?? "")
159+
print(response as Any)
160160
}
161161
```
162162

@@ -169,7 +169,7 @@ uploadcare.copyFileToRemoteStorage(source: source, target: "one_more_project", m
169169
print(error)
170170
return
171171
}
172-
print(response ?? "")
172+
print(response as Any)
173173
}
174174
```
175175

@@ -185,7 +185,7 @@ uploadcare.listOfGroups(withQuery: query) { list, error in
185185
print(error)
186186
return
187187
}
188-
print(list ?? "")
188+
print(list as Any)
189189
}
190190

191191
// Using a GroupsList object
@@ -196,7 +196,7 @@ groupsList.get(withQuery: query) { list, error in
196196
print(error)
197197
return
198198
}
199-
print(list ?? "")
199+
print(list as Any)
200200
}
201201

202202
// Get the next page
@@ -205,14 +205,15 @@ groupsList.nextPage { list, error in
205205
print(error)
206206
return
207207
}
208-
}
208+
}
209+
209210
// Get the previous page
210211
groupsList.previousPage { list, error in
211212
if let error = error {
212213
print(error)
213214
return
214215
}
215-
print(list ?? "")
216+
print(list as Any)
216217
}
217218
```
218219

@@ -224,7 +225,7 @@ uploadcare.groupInfo(withUUID: "c5bec8c7-d4b6-4921-9e55-6edb027546bc~1") { group
224225
print(error)
225226
return
226227
}
227-
print(group ?? "")
228+
print(group as Any)
228229
}
229230
```
230231

@@ -248,7 +249,7 @@ uploadcare.getProjectInfo { project, error in
248249
print(error)
249250
return
250251
}
251-
print(project ?? "")
252+
print(project as Any)
252253
}
253254
```
254255

@@ -268,7 +269,7 @@ uploadcare.getAuthenticatedUrlFromUrl(url) { value, error in
268269
}
269270

270271
// Value is https://cdn.yourdomain.com/{uuid}/?token={token}&expire={timestamp}
271-
print(value)
272+
print(value as Any)
272273
})
273274
```
274275

@@ -281,7 +282,7 @@ uploadcare.getListOfWebhooks { value, error in
281282
return
282283
}
283284

284-
print(value)
285+
print(value as Any)
285286
}
286287
```
287288

@@ -297,7 +298,7 @@ uploadcare.createWebhook(targetUrl: url, isActive: true, signingSecret: "someSig
297298
return
298299
}
299300

300-
print(value)
301+
print(value as Any)
301302
}
302303
```
303304

@@ -313,7 +314,7 @@ uploadcare.updateWebhook(id: "webhookId", targetUrl: url, isActive: true, signin
313314
return
314315
}
315316

316-
print(value)
317+
print(value as Any)
317318
}
318319
```
319320

@@ -346,7 +347,7 @@ uploadcare.convertDocumentsWithSettings([task1, task2]) { response, error in
346347
return
347348
}
348349

349-
print(response)
350+
print(response as Any)
350351
}
351352
```
352353

@@ -359,7 +360,7 @@ uploadcare.convertDocuments([":uuid/document/-/format/:target-format/"]) { respo
359360
return
360361
}
361362

362-
print(response)
363+
print(response as Any)
363364
}
364365
```
365366

@@ -372,7 +373,7 @@ uploadcare.documentConversionJobStatus(token: 123456) { job, error in
372373
return
373374
}
374375

375-
print(job)
376+
print(job as Any)
376377

377378
switch job.status {
378379
case .failed(let conversionError):
@@ -405,7 +406,7 @@ uploadcare.convertVideosWithSettings([task1, task2]) { response, error in
405406
return
406407
}
407408

408-
print(response)
409+
print(response as Any)
409410
}
410411
```
411412

@@ -418,7 +419,7 @@ uploadcare.convertVideos([":uuid/video/-/format/ogg/"]) { response, error in
418419
return
419420
}
420421

421-
print(response)
422+
print(response as Any)
422423
}
423424
```
424425

@@ -431,7 +432,7 @@ uploadcare.videoConversionJobStatus(token: 123456) { job, error in
431432
return
432433
}
433434

434-
print(job)
435+
print(job as Any)
435436

436437
switch job.status {
437438
case .failed(let conversionError):

0 commit comments

Comments
 (0)