code: func (service *IYOPhonenumberValidationService) ConfirmValidation(request *http.Request, key, code string) (err error) {
  	info, err := service.getPhonenumberValidationInformation(request, key)
  	if err != nil {
  		return
  	}
  	if info == nil {
  		err = ErrInvalidOrExpiredKey
  		return
  	}
  	if info.SMSCode != code {
  		err = ErrInvalidCode
  		return
  	}
  	valMngr := validation.NewManager(request)
  	p := valMngr.NewValidatedPhonenumber(info.Username, info.Phonenumber)
  	err = valMngr.SaveValidatedPhonenumber(p)
  	if err != nil {
  		return
  	}
  	err = valMngr.UpdatePhonenumberValidationInformation(key, true)
  	if err != nil {
  		return
  	}
  	return
  }
docs: //ConfirmValidation checks if the supplied code matches the username and key