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
+14
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
+
*[Getting info about account project](#getting-info-about-account-project-api-reference)
4
5
*[Get list of files](#get-list-of-files-api-reference)
5
6
*[File Info](#file-info-api-reference)
6
7
@@ -10,6 +11,19 @@ REST API requires both public and secret key:
10
11
```swift
11
12
let uploadcare =Uploadcare(withPublicKey: "YOUR_PUBLIC_KEY", secretKey: "YOUR_SECRET_KEY")
12
13
```
14
+
15
+
### Getting info about account project ([API Reference](https://uploadcare.com/api-refs/rest-api/v0.6.0/#operation/projectInfo?utm_source=github&utm_medium=referral&utm_campaign=uploadcare-swift)) ###
16
+
17
+
```swift
18
+
uploadcare.getProjectInfo { (project, error) in
19
+
iflet error = error {
20
+
print(error)
21
+
return
22
+
}
23
+
print(project ??"")
24
+
}
25
+
```
26
+
13
27
### 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)) ###
0 commit comments