Skip to content

Commit a758e22

Browse files
authored
Update REST API.md
1 parent 267d24d commit a758e22

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Documentation/REST API.md

+14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Upload API
22

33
* [Initialization](#initialization)
4+
* [Getting info about account project](#getting-info-about-account-project-api-reference)
45
* [Get list of files](#get-list-of-files-api-reference)
56
* [File Info](#file-info-api-reference)
67

@@ -10,6 +11,19 @@ REST API requires both public and secret key:
1011
```swift
1112
let uploadcare = Uploadcare(withPublicKey: "YOUR_PUBLIC_KEY", secretKey: "YOUR_SECRET_KEY")
1213
```
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+
if let error = error {
20+
print(error)
21+
return
22+
}
23+
print(project ?? "")
24+
}
25+
```
26+
1327
### 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)) ###
1428

1529
```swift

0 commit comments

Comments
 (0)