File tree Expand file tree Collapse file tree 5 files changed +8
-9
lines changed Expand file tree Collapse file tree 5 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 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.4.0 -blue.svg?style=flat-square ) 
5+ ![ Version] ( https://img.shields.io/badge/api%20version-1.4.2 -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 ) 
@@ -31,7 +31,7 @@ Add the package to your `Package.swift` dependencies:
3131
3232``` swift 
3333    dependencies:  [
34-         .
package (
url : 
" [email protected] :appwrite/sdk-for-apple.git" , 
from : 
" 3 .0.1 " ),
34+         .
package (
url : 
" [email protected] :appwrite/sdk-for-apple.git" , 
from : 
" 4 .0.0 " ),
3535    ],
3636``` 
3737
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ open class Client {
2323        " x-sdk-name " :  " Apple " , 
2424        " x-sdk-platform " :  " client " , 
2525        " x-sdk-language " :  " apple " , 
26-         " x-sdk-version " :  " 3 .0.1 " , 
26+         " x-sdk-version " :  " 4 .0.0 " , 
2727        " X-Appwrite-Response-Format " :  " 1.4.0 " 
2828    ] 
2929
Original file line number Diff line number Diff line change @@ -1014,8 +1014,8 @@ open class Account: Service {
10141014            " project " :  client. config [ " project " ] 
10151015        ] 
10161016
1017-         let  query  =  " ? \( client. parametersToQueryString ( params:  params ) ) " 
1018-         let  url  =  URL ( string:  client. endPoint +  api_path  +  query) !
1017+         let  query  =  " ? \( client. parametersToQueryString ( params:  apiParams ) ) " 
1018+         let  url  =  URL ( string:  client. endPoint +  apiPath  +  query) !
10191019        let  callbackScheme  =  " appwrite-callback- \( client. config [ " project " ]  ??  " " ) " 
10201020        let  group  =  DispatchGroup ( ) 
10211021
Original file line number Diff line number Diff line change @@ -350,21 +350,21 @@ open class Teams: Service {
350350    ///
351351    /// @param String teamId
352352    /// @param [String] roles
353-     /// @param String url
354353    /// @param String email
355354    /// @param String userId
356355    /// @param String phone
356+     /// @param String url
357357    /// @param String name
358358    /// @throws Exception
359359    /// @return array
360360    ///
361361    open  func  createMembership( 
362362        teamId:  String , 
363363        roles:  [ String ] , 
364-         url:  String , 
365364        email:  String ? =  nil , 
366365        userId:  String ? =  nil , 
367366        phone:  String ? =  nil , 
367+         url:  String ? =  nil , 
368368        name:  String ? =  nil 
369369    )  async  throws  ->  AppwriteModels . Membership  { 
370370        let  apiPath :  String  =  " /teams/{teamId}/memberships " 
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ let teams = Teams(client)
88
99let membership = try await teams.createMembership(
1010    teamId: "[ TEAM_ID] ",
11-     roles: [ ] ,
12-     url: "https://example.com "
11+     roles: [ ] 
1312)
1413
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments