You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Documentation/REST API.md
+56
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
# Upload API
2
2
3
3
*[Initialization](#initialization)
4
+
*[Get list of files](#get-list-of-files-api-reference)
4
5
5
6
6
7
### Initialization
@@ -9,3 +10,58 @@ REST API requires both public and secret key:
9
10
```swift
10
11
let uploadcare =Uploadcare(withPublicKey: "YOUR_PUBLIC_KEY", secretKey: "YOUR_SECRET_KEY")
11
12
```
13
+
### Get list of files ([API Reference](https://uploadcare.com/api-refs/rest-api/v0.6.0/#operation/filesList?utm_source=github&utm_medium=referral&utm_campaign=uploadcare-swift)) ###
14
+
15
+
```swift
16
+
// Make query object
17
+
let query =PaginationQuery()
18
+
.stored(true)
19
+
.ordering(.sizeDESC)
20
+
.limit(5)
21
+
// Make files list object
22
+
let filesList = uploadcare.list()
23
+
24
+
// Get files list
25
+
filesList.get(withQuery: query) { (list, error) in
0 commit comments