Skip to content

Commit 2bcab68

Browse files
authored
Update REST API.md
1 parent 936b913 commit 2bcab68

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Documentation/REST API.md

+19
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* [File Info](#file-info-api-reference)
77
* [Delete files](#delete-files-api-reference)
88
* [Store files](#store-files-api-reference)
9+
* [Get list of groups](#get-list-of-groups-api-reference)
10+
911

1012

1113
### Initialization
@@ -137,6 +139,23 @@ uploadcare.storeFiles(withUUIDs: uuids) { (response, error) in
137139
}
138140
```
139141

142+
### Get list of groups ([API Reference](https://uploadcare.com/api-refs/rest-api/v0.6.0/#operation/groupsList?utm_source=github&utm_medium=referral&utm_campaign=uploadcare-swift)) ###
143+
144+
```swift
145+
let query = GroupsListQuery()
146+
.limit(100)
147+
.ordering(.datetimeCreatedDESC)
148+
149+
uploadcare.listOfGroups(withQuery: query) { (list, error) in
150+
if let error = error {
151+
print(error)
152+
return
153+
}
154+
print(list ?? "")
155+
}
156+
```
157+
158+
140159

141160

142161

0 commit comments

Comments
 (0)