Skip to content

Commit

Permalink
Merge pull request #40 from appwrite/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
christyjacob4 authored Sep 7, 2023
2 parents e14f39a + 978e878 commit 4478da2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![Swift Package Manager](https://img.shields.io/github/v/release/appwrite/sdk-for-apple.svg?color=green&style=flat-square)
![License](https://img.shields.io/github/license/appwrite/sdk-for-apple.svg?style=flat-square)
![Version](https://img.shields.io/badge/api%20version-1.4.0-blue.svg?style=flat-square)
![Version](https://img.shields.io/badge/api%20version-1.4.2-blue.svg?style=flat-square)
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
Expand Down Expand Up @@ -31,7 +31,7 @@ Add the package to your `Package.swift` dependencies:

```swift
dependencies: [
.package(url: "git@github.com:appwrite/sdk-for-apple.git", from: "3.0.1"),
.package(url: "git@github.com:appwrite/sdk-for-apple.git", from: "4.0.0"),
],
```

Expand Down
2 changes: 1 addition & 1 deletion Sources/Appwrite/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ open class Client {
"x-sdk-name": "Apple",
"x-sdk-platform": "client",
"x-sdk-language": "apple",
"x-sdk-version": "3.0.1",
"x-sdk-version": "4.0.0",
"X-Appwrite-Response-Format": "1.4.0"
]

Expand Down
4 changes: 2 additions & 2 deletions Sources/Appwrite/Services/Account.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1014,8 +1014,8 @@ open class Account: Service {
"project": client.config["project"]
]

let query = "?\(client.parametersToQueryString(params: params))"
let url = URL(string: client.endPoint + api_path + query)!
let query = "?\(client.parametersToQueryString(params: apiParams))"
let url = URL(string: client.endPoint + apiPath + query)!
let callbackScheme = "appwrite-callback-\(client.config["project"] ?? "")"
let group = DispatchGroup()

Expand Down
4 changes: 2 additions & 2 deletions Sources/Appwrite/Services/Teams.swift
Original file line number Diff line number Diff line change
Expand Up @@ -350,21 +350,21 @@ open class Teams: Service {
///
/// @param String teamId
/// @param [String] roles
/// @param String url
/// @param String email
/// @param String userId
/// @param String phone
/// @param String url
/// @param String name
/// @throws Exception
/// @return array
///
open func createMembership(
teamId: String,
roles: [String],
url: String,
email: String? = nil,
userId: String? = nil,
phone: String? = nil,
url: String? = nil,
name: String? = nil
) async throws -> AppwriteModels.Membership {
let apiPath: String = "/teams/{teamId}/memberships"
Expand Down
3 changes: 1 addition & 2 deletions docs/examples/teams/create-membership.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ let teams = Teams(client)

let membership = try await teams.createMembership(
teamId: "[TEAM_ID]",
roles: [],
url: "https://example.com"
roles: []
)

0 comments on commit 4478da2

Please sign in to comment.