Skip to content

Commit 2531577

Browse files
committed
chore: updates for appwrite 1.6.x
1 parent f9b4991 commit 2531577

File tree

6 files changed

+1
-301
lines changed

6 files changed

+1
-301
lines changed

Sources/Appwrite/Services/Functions.swift

-36
Original file line numberDiff line numberDiff line change
@@ -211,42 +211,6 @@ open class Functions: Service {
211211
)
212212
}
213213

214-
///
215-
/// Get function template
216-
///
217-
/// Get a function template using ID. You can use template details in
218-
/// [createFunction](/docs/references/cloud/server-nodejs/functions#create)
219-
/// method.
220-
///
221-
/// @param String templateId
222-
/// @throws Exception
223-
/// @return array
224-
///
225-
open func getTemplate(
226-
templateId: String
227-
) async throws -> AppwriteModels.TemplateFunction {
228-
let apiPath: String = "/functions/templates/{templateId}"
229-
.replacingOccurrences(of: "{templateId}", with: templateId)
230-
231-
let apiParams: [String: Any] = [:]
232-
233-
let apiHeaders: [String: String] = [
234-
"content-type": "application/json"
235-
]
236-
237-
let converter: (Any) -> AppwriteModels.TemplateFunction = { response in
238-
return AppwriteModels.TemplateFunction.from(map: response as! [String: Any])
239-
}
240-
241-
return try await client.call(
242-
method: "GET",
243-
path: apiPath,
244-
headers: apiHeaders,
245-
params: apiParams,
246-
converter: converter
247-
)
248-
}
249-
250214
///
251215
/// Get function
252216
///

Sources/AppwriteModels/TemplateFunction.swift

-140
This file was deleted.

Sources/AppwriteModels/TemplateRuntime.swift

-49
This file was deleted.

Sources/AppwriteModels/TemplateVariable.swift

-63
This file was deleted.

docs/examples/functions/get-deployment-download.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Appwrite
33
let client = Client()
44
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
55
.setProject("<YOUR_PROJECT_ID>") // Your project ID
6-
.setSession("") // The user session to authenticate with
6+
.setKey("<YOUR_API_KEY>") // Your secret API key
77

88
let functions = Functions(client)
99

docs/examples/functions/get-template.md

-12
This file was deleted.

0 commit comments

Comments
 (0)