Documentation ¶
Index ¶
- Constants
- func GetTokenEmail(token *api.TeamsToken) (string, error)
- type Service
- func (m *Service) AuthenticatedRequest(method, url string, body io.Reader) (*http.Request, error)
- func (m *Service) CookieRequest(method, url string, body io.Reader) (*http.Request, error)
- func (m *Service) DebugDisallowUnknownFields(flag bool)
- func (m *Service) DebugSave(flag bool)
- func (m *Service) FetchShortProfile(mri ...string) ([]models.User, error)
- func (m *Service) GetMe() (*models.User, error)
- func (m *Service) GetProfilePicture(emailOrId string) ([]byte, error)
- func (m *Service) GetTeamsProfilePicture(emailOrId string) ([]byte, error)
- func (m *Service) GetTenants() ([]models.Tenant, error)
- func (m *Service) GetUser(email string) (*models.User, error)
- func (m *Service) GetVerifiedDomains() (*[]VerifiedDomain, error)
- type VerifiedDomain
Constants ¶
View Source
const MiddleTier = "https://teams.microsoft.com/api/mt/"
Variables ¶
This section is empty.
Functions ¶
func GetTokenEmail ¶
func GetTokenEmail(token *api.TeamsToken) (string, error)
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewMiddleTierService ¶
func NewMiddleTierService(region api.Region, token *api.TeamsToken, teamsToken *api.TeamsToken) (*Service, error)
func (*Service) AuthenticatedRequest ¶
func (*Service) CookieRequest ¶
func (*Service) DebugDisallowUnknownFields ¶
func (*Service) FetchShortProfile ¶
func (*Service) GetProfilePicture ¶
func (*Service) GetTeamsProfilePicture ¶
TODO: Test and check why it returns a 401
func (*Service) GetVerifiedDomains ¶
func (m *Service) GetVerifiedDomains() (*[]VerifiedDomain, error)
type VerifiedDomain ¶
type VerifiedDomain struct {
Name string
}
Click to show internal directories.
Click to hide internal directories.