csa

package
v0.0.0-...-60cd5c1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const ChatSvcAgg = "https://teams.microsoft.com/api/csa/api/"
View Source
const MessagesHost = "https://emea.ng.msg.teams.microsoft.com/"

Variables

This section is empty.

Functions

This section is empty.

Types

type CSASvc

type CSASvc struct {
	// contains filtered or unexported fields
}

func NewCSAService

func NewCSAService(token *api.TeamsToken, skypeToken *api.SkypeToken) (*CSASvc, error)

func (*CSASvc) AuthenticatedRequest

func (c *CSASvc) AuthenticatedRequest(method, url string, body io.Reader) (*http.Request, error)

func (*CSASvc) DebugDisallowUnknownFields

func (c *CSASvc) DebugDisallowUnknownFields(debugFlag bool)

func (*CSASvc) DebugSave

func (c *CSASvc) DebugSave(debugFlag bool)

func (*CSASvc) GetConversations

func (c *CSASvc) GetConversations() (*models.ConversationResponse, error)

func (*CSASvc) GetMessagesByChannel

func (c *CSASvc) GetMessagesByChannel(channel *models2.Channel) ([]models2.ChatMessage, error)

func (*CSASvc) GetPinnedChannels

func (c *CSASvc) GetPinnedChannels() ([]ChannelId, error)

type ChannelId

type ChannelId string

type ChannelsByName

type ChannelsByName []models.Channel

func (ChannelsByName) Len

func (c ChannelsByName) Len() int

func (ChannelsByName) Less

func (c ChannelsByName) Less(i, j int) bool

func (ChannelsByName) Swap

func (c ChannelsByName) Swap(i, j int)

type EndpointType

type EndpointType string
const (
	EndpointChatSvcAgg EndpointType = "chatsvcagg"
	EndpointMessages   EndpointType = "messages"
)

type PinnedChannelsResponse

type PinnedChannelsResponse struct {
	OrderVersion    int
	PinChannelOrder []ChannelId
}

type TeamsByName

type TeamsByName []models.CSATeam

func (TeamsByName) Len

func (t TeamsByName) Len() int

func (TeamsByName) Less

func (t TeamsByName) Less(i, j int) bool

func (TeamsByName) Swap

func (t TeamsByName) Swap(i, j int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL