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
**This SDK is compatible with Appwrite server version latest. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-apple/releases).**
10
+
**This SDK is compatible with Appwrite server version 1.9.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-apple/releases).**
11
11
12
12
Appwrite is an open-source backend as a service server that abstracts and simplifies complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the Apple SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
13
13
@@ -31,7 +31,7 @@ Add the package to your `Package.swift` dependencies:
Copy file name to clipboardExpand all lines: Sources/Appwrite/Client.swift
+53-6Lines changed: 53 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
import NIO
2
2
import NIOCore
3
+
#if canImport(NIOFoundationCompat)
3
4
import NIOFoundationCompat
5
+
#endif
4
6
import NIOSSL
5
7
import Foundation
6
8
import AsyncHTTPClient
@@ -24,8 +26,8 @@ open class Client {
24
26
"x-sdk-name":"Apple",
25
27
"x-sdk-platform":"client",
26
28
"x-sdk-language":"apple",
27
-
"x-sdk-version":"15.0.0",
28
-
"x-appwrite-response-format":"1.8.0"
29
+
"x-sdk-version":"16.0.0",
30
+
"x-appwrite-response-format":"1.9.0"
29
31
]
30
32
31
33
internalvarconfig:[String:String]=[:]
@@ -162,6 +164,51 @@ open class Client {
162
164
returnself
163
165
}
164
166
167
+
///
168
+
/// Set ImpersonateUserId
169
+
///
170
+
/// Impersonate a user by ID on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
/// Impersonate a user by email on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
/// Impersonate a user by phone on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
0 commit comments