Skip to content

Commit 2216ab2

Browse files
committed
chore: updates for appwrite 1.6.x
1 parent 777b537 commit 2216ab2

File tree

8 files changed

+2
-352
lines changed

8 files changed

+2
-352
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import io.appwrite.services.Functions;
55
Client client = new Client()
66
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("<YOUR_PROJECT_ID>") // Your project ID
8-
.setSession(""); // The user session to authenticate with
8+
.setKey("<YOUR_API_KEY>"); // Your secret API key
99

1010
Functions functions = new Functions(client);
1111

docs/examples/java/functions/get-template.md

-22
This file was deleted.

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import io.appwrite.services.Functions
55
val client = Client()
66
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("<YOUR_PROJECT_ID>") // Your project ID
8-
.setSession("") // The user session to authenticate with
8+
.setKey("<YOUR_API_KEY>") // Your secret API key
99

1010
val functions = Functions(client)
1111

docs/examples/kotlin/functions/get-template.md

-13
This file was deleted.

src/main/kotlin/io/appwrite/models/TemplateFunction.kt

-158
This file was deleted.

src/main/kotlin/io/appwrite/models/TemplateRuntime.kt

-54
This file was deleted.

src/main/kotlin/io/appwrite/models/TemplateVariable.kt

-70
This file was deleted.

src/main/kotlin/io/appwrite/services/Functions.kt

-33
Original file line numberDiff line numberDiff line change
@@ -209,39 +209,6 @@ class Functions(client: Client) : Service(client) {
209209
)
210210
}
211211

212-
/**
213-
* Get function template
214-
*
215-
* Get a function template using ID. You can use template details in [createFunction](/docs/references/cloud/server-nodejs/functions#create) method.
216-
*
217-
* @param templateId Template ID.
218-
* @return [io.appwrite.models.TemplateFunction]
219-
*/
220-
@Throws(AppwriteException::class)
221-
suspend fun getTemplate(
222-
templateId: String,
223-
): io.appwrite.models.TemplateFunction {
224-
val apiPath = "/functions/templates/{templateId}"
225-
.replace("{templateId}", templateId)
226-
227-
val apiParams = mutableMapOf<String, Any?>(
228-
)
229-
val apiHeaders = mutableMapOf(
230-
"content-type" to "application/json",
231-
)
232-
val converter: (Any) -> io.appwrite.models.TemplateFunction = {
233-
io.appwrite.models.TemplateFunction.from(map = it as Map<String, Any>)
234-
}
235-
return client.call(
236-
"GET",
237-
apiPath,
238-
apiHeaders,
239-
apiParams,
240-
responseType = io.appwrite.models.TemplateFunction::class.java,
241-
converter,
242-
)
243-
}
244-
245212
/**
246213
* Get function
247214
*

0 commit comments

Comments
 (0)