users.go
func (self *Client) CreateUser(handle, name *string) (*User, error) {
	in := struct {
		Handle *string `json:"handle"`
		Name   *string `json:"name"`
	}{
		Handle: handle,
		Name:   name,
	}

	out := struct {
		*User `json:"user"`
	}{}
	if err := self.doJsonRequest("POST", "/v1/user", in, &out); err != nil {
		return nil, err
	}
	return out.User, nil
}
func (self *Client) CreateUser(handle, name *string) (*User, error) {
	in := struct {
		Handle *string `json:"handle"`
		Name   *string `json:"name"`
	}{
		Handle: handle,
		Name:   name,
	}

	out := struct {
		*User `json:"user"`
	}{}
	if err := self.doJsonRequest("POST", "/v1/user", in, &out); err != nil {
		return nil, err
	}
	return out.User, nil
}
func ( self * Client ) CreateUser ( handle , name * string ) ( * User , error ) { in := struct { Handle * string `json:"handle"` Name * string `json:"name"` } { Handle : handle , Name : name , } out := struct { * User `json:"user"` } { } if err := self . doJsonRequest ( " " , " " , in , & out ) ; err != nil { return nil , err } return out . User , nil }
// CreateUser creates an user account for an email address
CreateUser creates an user account for an email address