2020-01-29 03:22:13 +13:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"github.com/appwrite/sdk-for-go"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
var client := appwrite.Client{}
|
|
|
|
|
|
|
|
client.SetProject("")
|
|
|
|
client.SetKey("")
|
|
|
|
|
2020-01-29 05:42:11 +13:00
|
|
|
var service := appwrite.Teams{
|
2020-01-29 03:22:13 +13:00
|
|
|
client: &client
|
|
|
|
}
|
|
|
|
|
2020-01-29 10:01:07 +13:00
|
|
|
var response, error := service.CreateTeam("[NAME]", [])
|
2020-01-29 05:42:11 +13:00
|
|
|
|
|
|
|
if error != nil {
|
|
|
|
panic(error)
|
2020-01-29 03:22:13 +13:00
|
|
|
}
|
|
|
|
|
2020-01-29 05:42:11 +13:00
|
|
|
fmt.Println(response)
|
2020-01-29 03:22:13 +13:00
|
|
|
}
|