Skip to content

Commit c15ab70

Browse files
feat: 1.6.x
1 parent 3b20b48 commit c15ab70

File tree

99 files changed

+113
-103
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+113
-103
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
![Swift Package Manager](https://img.shields.io/github/v/release/appwrite/sdk-for-apple.svg?color=green&style=flat-square)
44
![License](https://img.shields.io/github/license/appwrite/sdk-for-apple.svg?style=flat-square)
5-
![Version](https://img.shields.io/badge/api%20version-1.5.6-blue.svg?style=flat-square)
5+
![Version](https://img.shields.io/badge/api%20version-1.5.7-blue.svg?style=flat-square)
66
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
77
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
88
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
99

10-
**This SDK is compatible with Appwrite server version 1.5.x. 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.6.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-apple/releases).**
1111

1212
Appwrite is an open-source backend as a service server that abstract and simplify 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)
1313

Sources/Appwrite/Client.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,12 @@ open class Client {
313313
timeout: .seconds(30)
314314
)
315315

316+
if let warning = response.headers["x-appwrite-warning"].first {
317+
warning.split(separator: ";").forEach { warning in
318+
print("Warning: \(warning)")
319+
}
320+
}
321+
316322
switch response.status.code {
317323
case 0..<400:
318324
if response.headers["Set-Cookie"].count > 0 {

Sources/Appwrite/Services/Account.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ open class Account: Service {
290290
///
291291
open func createJWT(
292292
) async throws -> AppwriteModels.Jwt {
293-
let apiPath: String = "/account/jwt"
293+
let apiPath: String = "/account/jwts"
294294

295295
let apiParams: [String: Any] = [:]
296296

@@ -443,7 +443,7 @@ open class Account: Service {
443443
///
444444
/// Verify an authenticator app after adding it using the [add
445445
/// authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator)
446-
/// method. add
446+
/// method.
447447
///
448448
/// @param AppwriteEnums.AuthenticatorType type
449449
/// @param String otp
@@ -484,7 +484,7 @@ open class Account: Service {
484484
///
485485
/// Verify an authenticator app after adding it using the [add
486486
/// authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator)
487-
/// method. add
487+
/// method.
488488
///
489489
/// @param AppwriteEnums.AuthenticatorType type
490490
/// @param String otp

Sources/Appwrite/Services/Functions.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ open class Functions: Service {
6464
/// @param String path
6565
/// @param AppwriteEnums.ExecutionMethod method
6666
/// @param Any headers
67+
/// @param String scheduledAt
6768
/// @throws Exception
6869
/// @return array
6970
///
@@ -73,7 +74,8 @@ open class Functions: Service {
7374
async: Bool? = nil,
7475
path: String? = nil,
7576
method: AppwriteEnums.ExecutionMethod? = nil,
76-
headers: Any? = nil
77+
headers: Any? = nil,
78+
scheduledAt: String? = nil
7779
) async throws -> AppwriteModels.Execution {
7880
let apiPath: String = "/functions/{functionId}/executions"
7981
.replacingOccurrences(of: "{functionId}", with: functionId)
@@ -83,7 +85,8 @@ open class Functions: Service {
8385
"async": async,
8486
"path": path,
8587
"method": method,
86-
"headers": headers
88+
"headers": headers,
89+
"scheduledAt": scheduledAt
8790
]
8891

8992
let apiHeaders: [String: String] = [

docs/examples/account/create-anonymous-session.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Appwrite
22

33
let client = Client()
44
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
5-
.setProject("5df5acd0d48c2") // Your project ID
5+
.setProject("&lt;YOUR_PROJECT_ID&gt;") // Your project ID
66

77
let account = Account(client)
88

docs/examples/account/create-email-password-session.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Appwrite
22

33
let client = Client()
44
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
5-
.setProject("5df5acd0d48c2") // Your project ID
5+
.setProject("&lt;YOUR_PROJECT_ID&gt;") // Your project ID
66

77
let account = Account(client)
88

docs/examples/account/create-email-token.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Appwrite
22

33
let client = Client()
44
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
5-
.setProject("5df5acd0d48c2") // Your project ID
5+
.setProject("&lt;YOUR_PROJECT_ID&gt;") // Your project ID
66

77
let account = Account(client)
88

docs/examples/account/create-j-w-t.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Appwrite
22

33
let client = Client()
44
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
5-
.setProject("5df5acd0d48c2") // Your project ID
5+
.setProject("&lt;YOUR_PROJECT_ID&gt;") // Your project ID
66

77
let account = Account(client)
88

docs/examples/account/create-magic-u-r-l-token.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Appwrite
22

33
let client = Client()
44
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
5-
.setProject("5df5acd0d48c2") // Your project ID
5+
.setProject("&lt;YOUR_PROJECT_ID&gt;") // Your project ID
66

77
let account = Account(client)
88

docs/examples/account/create-mfa-authenticator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import AppwriteEnums
33

44
let client = Client()
55
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
6-
.setProject("5df5acd0d48c2") // Your project ID
6+
.setProject("&lt;YOUR_PROJECT_ID&gt;") // Your project ID
77

88
let account = Account(client)
99

0 commit comments

Comments
 (0)