File tree Expand file tree Collapse file tree 3 files changed +21
-8
lines changed Expand file tree Collapse file tree 3 files changed +21
-8
lines changed Original file line number Diff line number Diff line change @@ -131,14 +131,7 @@ open class {{ service.name | caseUcfirst }}: Service {
131
131
onProgress: onProgress
132
132
)
133
133
{% else %}
134
- return try await client.call(
135
- method: "{{ method .method | caseUpper }}",
136
- path: path,
137
- headers: headers,
138
- params: params{% if method .responseModel %},
139
- converter: converter
140
- {% endif %}
141
- )
134
+ {{include (' swift/base/requests/api.twig' )}}
142
135
{% endif %}
143
136
{% endif %}
144
137
}
Original file line number Diff line number Diff line change
1
+ let query = "?\(client.parametersToQueryString(params: params))"
2
+ let url = URL(string: client.endPoint + path + query)!
3
+ let callbackScheme = "appwrite-callback-\(client.config["project"] ?? "")"
4
+ let group = DispatchGroup()
5
+
6
+ group.enter()
7
+ WebAuthComponent.authenticate(url: url, callbackScheme: callbackScheme) { result in
8
+ group.leave()
9
+ }
10
+ group.wait()
11
+
12
+ return true
Original file line number Diff line number Diff line change
1
+ return try await client.call(
2
+ method: "{{ method .method | caseUpper }}",
3
+ path: path,
4
+ headers: headers,
5
+ params: params{% if method .responseModel %},
6
+ converter: converter
7
+ {% endif %}
8
+ )
You can’t perform that action at this time.
0 commit comments