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
+28-1
Original file line number
Diff line number
Diff line change
@@ -148,14 +148,41 @@ uploadcare.storeFiles(withUUIDs: uuids) { (response, error) in
148
148
let query =GroupsListQuery()
149
149
.limit(100)
150
150
.ordering(.datetimeCreatedDESC)
151
-
151
+
152
152
uploadcare.listOfGroups(withQuery: query) { (list, error) in
153
153
iflet error = error {
154
154
print(error)
155
155
return
156
156
}
157
157
print(list ??"")
158
158
}
159
+
160
+
// using GroupsList object:
161
+
let groupsList = uploadcare.listOfGroups()
162
+
163
+
groupsList.get(withQuery: query) { (list, error) in
164
+
iflet error = error {
165
+
print(error)
166
+
return
167
+
}
168
+
print(list ??"")
169
+
}
170
+
171
+
// get next page
172
+
groupsList.nextPage { (list, error) in
173
+
iflet error = error {
174
+
print(error)
175
+
return
176
+
}
177
+
}
178
+
// get previous page
179
+
groupsList.previousPage { (list, error) in
180
+
iflet error = error {
181
+
print(error)
182
+
return
183
+
}
184
+
print(list ??"")
185
+
}
159
186
```
160
187
161
188
### Group info ([API Reference](https://uploadcare.com/api-refs/rest-api/v0.6.0/#operation/groupInfo?utm_source=github&utm_medium=referral&utm_campaign=uploadcare-swift)) ###
0 commit comments