summaryrefslogtreecommitdiffstats
path: root/model/client.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2017-01-04 14:11:48 -0500
committerHarrison Healey <harrisonmhealey@gmail.com>2017-01-04 14:11:47 -0500
commit635628cf30460a75d3a870394ad66db91f3bea9f (patch)
tree17d40987fab0876c6dc95acec7f82b4f3eb36c01 /model/client.go
parentb3f2ab654e95325b556e0c93b41ea6e15e45fffe (diff)
downloadchat-635628cf30460a75d3a870394ad66db91f3bea9f.tar.gz
chat-635628cf30460a75d3a870394ad66db91f3bea9f.tar.bz2
chat-635628cf30460a75d3a870394ad66db91f3bea9f.zip
Removing old signup team API (#4950)
Diffstat (limited to 'model/client.go')
-rw-r--r--model/client.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/model/client.go b/model/client.go
index 0c8bdcc5b..540bc747f 100644
--- a/model/client.go
+++ b/model/client.go
@@ -299,22 +299,6 @@ func (c *Client) GetPing() (map[string]string, *AppError) {
// Team Routes Section
-// SignupTeam sends an email with a team sign-up link to the provided address if email
-// verification is enabled, otherwise it returns a map with a "follow_link" entry
-// containing the team sign-up link.
-func (c *Client) SignupTeam(email string, displayName string) (*Result, *AppError) {
- m := make(map[string]string)
- m["email"] = email
- m["display_name"] = displayName
- if r, err := c.DoApiPost("/teams/signup", MapToJson(m)); err != nil {
- return nil, err
- } else {
- defer closeBody(r)
- return &Result{r.Header.Get(HEADER_REQUEST_ID),
- r.Header.Get(HEADER_ETAG_SERVER), MapFromJson(r.Body)}, nil
- }
-}
-
// CreateTeam creates a team based on the provided Team struct. On success it returns
// the Team struct with the Id, CreateAt and other server-decided fields populated.
func (c *Client) CreateTeam(team *Team) (*Result, *AppError) {