2023-04-06 01:48:52 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import ()
|
|
|
|
|
|
|
|
type Session struct {
|
|
|
|
Name string `json:"name"`
|
|
|
|
Status string `json:"status"`
|
|
|
|
ID int64 `json:"id"`
|
|
|
|
Mode string `json:"mode"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (a *AirbusAPI) GetSessions() (ret []Session, err error) {
|
2023-04-06 13:37:05 +00:00
|
|
|
err = a.request("GET", "/v1/sessions", nil, &ret)
|
2023-04-06 01:48:52 +00:00
|
|
|
return
|
|
|
|
}
|