Cherry-pick 6404ab29acc04901c5cb1cf5ad97fc3c0693e2cd into release-10.11
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
989f3a36dc
Коммит
a07b1d7a8c
@@ -491,3 +491,19 @@ func ExampleClient4_UpdateChannelScheme() {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
func ExampleClient4_GetGroupMessageMembersCommonTeams() {
|
||||
client := model.NewAPIv4Client(os.Getenv("MM_SERVICESETTINGS_SITEURL"))
|
||||
client.SetToken(os.Getenv("MM_AUTHTOKEN"))
|
||||
|
||||
channelID := "gm_channel_id"
|
||||
teams, _, err := client.GetGroupMessageMembersCommonTeams(context.Background(), channelID)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
fmt.Printf("Found %d common teams for members of channel %s\n", len(teams), channelID)
|
||||
for _, team := range teams {
|
||||
fmt.Printf(" - %s (%s)\n", team.DisplayName, team.Name)
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user