Documentation ¶
Index ¶
- Constants
- type Service
- func (s *Service) CreateSmtpDetails(requestBody SmtpRequest) (model.Smtp, error)
- func (s *Service) GetAccessToken() (*TokenResponse, error)
- func (s *Service) GetSmtpDetails() (model.Smtp, error)
- func (s *Service) Login() error
- func (s *Service) UpdateSmtpDetails(requestBody SmtpRequest) (model.Smtp, error)
- type SmtpRequest
- type TokenRequest
- type TokenResponse
Constants ¶
View Source
const ( Token = "token" Auth = "auth" Login = "login" SMTP = "smtp-management" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
func (*Service) CreateSmtpDetails ¶ added in v0.0.5
func (s *Service) CreateSmtpDetails(requestBody SmtpRequest) (model.Smtp, error)
func (*Service) GetAccessToken ¶
func (s *Service) GetAccessToken() (*TokenResponse, error)
GetAccessToken - Get a new token for user
func (*Service) GetSmtpDetails ¶ added in v0.0.4
func (*Service) UpdateSmtpDetails ¶ added in v0.0.4
func (s *Service) UpdateSmtpDetails(requestBody SmtpRequest) (model.Smtp, error)
type SmtpRequest ¶ added in v0.0.4
type TokenRequest ¶
type TokenRequest struct { ApiKey string `json:"apiKey"` ClientId string `json:"clientId"` ClientSecret string `json:"clientSecret"` AccessToken string `json:"accessToken"` OrgId string `json:"orgId"` OAuthAppTypes string `json:"oAuthAppTypes"` Username string `json:"username"` Password string `json:"password"` }
Click to show internal directories.
Click to hide internal directories.