challenge-sync-airbus: Do job
This commit is contained in:
parent
18b8f0f722
commit
3344e05e0d
6 changed files with 256 additions and 65 deletions
15
remote/challenge-sync-airbus/session.go
Normal file
15
remote/challenge-sync-airbus/session.go
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
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) {
|
||||
err = a.request("GET", "/api/v1/sessions", nil, &ret)
|
||||
return
|
||||
}
|
||||
Reference in a new issue