github.com/optim-corp/cios-golang-sdk@v0.5.1/sdk/service/account/member.go (about) 1 package srvaccount 2 3 import ( 4 _nethttp "net/http" 5 6 ciosctx "github.com/optim-corp/cios-golang-sdk/ctx" 7 8 "github.com/optim-corp/cios-golang-sdk/cios" 9 ) 10 11 func (self *CiosAccount) InviteGroup(ctx ciosctx.RequestCtx, groupID string, email string) (response cios.Member, httpResponse *_nethttp.Response, err error) { 12 if err := self.refresh(); err != nil { 13 return cios.Member{}, nil, err 14 } 15 request := self.ApiClient.GroupApi.InviteGroup( 16 self.withHost(ctx), 17 groupID, 18 ).GroupInviteRequest(cios.GroupInviteRequest{Email: &email}) 19 return request.Execute() 20 }