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
// Create an instance of the Lemmy API with the base URL of your Lemmy instance
31
+
let api =LemmyAPI(baseUrl: url)
32
+
33
+
// Create a SearchRequest object with the `q` parameter
34
+
let request =SearchRequest(q: "Lemmy-Swift-Client")
35
+
// Send the request to the Lemmy API
36
+
iflet response =try?await api.request(request) {
37
+
print(response)
38
+
} else {
39
+
print("Error")
40
+
}
41
+
}
42
+
```
43
+
44
+
Luckily this just scratches the surface of what you can do with the Lemmy Swift Client. For more information checkout our [documentation](https://rrainn.github.io/Lemmy-Swift-Client/documentation/lemmy_swift_client/).
0 commit comments