webex

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadRecording

func DownloadRecording(username, password, tenant, siteID, domain, recordingID string) (string, error)

DownloadRecording is used to download a recording with a given recordingID.

func GetWebExToken

func GetWebExToken(username, password, tenant, siteID, domain string) (string, error)

GetWebExToken gets a token from WebEx for use with further requests

Types

type ListingBody

type ListingBody struct {
	MatchingRecords string             `xml:"bodyContent>matchingRecords>total"`
	ReturnedRecords string             `xml:"bodyContent>matchingRecords>returned"`
	StartFrom       string             `xml:"bodyContent>matchingRecords>startFrom"`
	Recordings      []ListingRecording `xml:"bodyContent>recording"`
}

ListingBody is the body document element of the listing

type ListingHeader

type ListingHeader struct {
	ListingResult    string `xml:"response>result"`
	ListingStatus    string `xml:"response>gsbStatus"`
	ListingReason    string `xml:"response>reason"`
	ListingException string `xml:"response>exceptionID"`
}

ListingHeader is the header document element of the listing

type ListingMessage

type ListingMessage struct {
	ListingHeader ListingHeader `xml:"header"`
	ListingBody   ListingBody   `xml:"body"`
}

ListingMessage is the top level xml object consisting of the header and the body

func GetRecordingList

func GetRecordingList(username, password, tenant, siteID string, fromDate, toDate time.Time) (ListingMessage, error)

GetRecordingList will retrieve a list of recordings from a given date until 28 days later (due to Cisco API restriction).

func GetRecordingListForUser

func GetRecordingListForUser(username, password, userid, tenant, siteID string, fromDate, toDate time.Time) (ListingMessage, error)

GetRecordingListForUser will retrieve a list of recordings for a given userid (hostWebExID).

type ListingRecording

type ListingRecording struct {
	RecordingID         string  `xml:"recordingID"`
	HostWebExID         string  `xml:"hostWebExID"`
	RecordingName       string  `xml:"name"`
	RecordingCreateTime string  `xml:"createTime"`
	RecordingTimeZoneID string  `xml:"timeZoneID"`
	RecordingSize       float32 `xml:"size"`
	StreamURL           string  `xml:"streamURL"`
	FileURL             string  `xml:"fileURL"`
	RecordingType       int     `xml:"recordingType"`
	Duration            int     `xml:"duration"`
	Format              string  `xml:"format"`
	ServiceType         string  `xml:"serviceType"`
	ConfID              string  `xml:"confID"`
	Password            string  `xml:"password"`
	PasswordReq         string  `xml:"passwordReq"`
}

ListingRecording is an individual recording item details

func (ListingRecording) GetHeaders

func (r ListingRecording) GetHeaders() []string

GetHeaders is a struct method to return the Headers for CSV Output

func (ListingRecording) ToSlice

func (r ListingRecording) ToSlice() []string

ToSlice is a struct method to return the string representation of each recording

Jump to

Keyboard shortcuts

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