2018-09-19 07:07:32 +00:00
|
|
|
package arlo
|
2017-12-10 19:17:09 +00:00
|
|
|
|
|
|
|
import (
|
2018-09-17 04:44:41 +00:00
|
|
|
"github.com/jeffreydwalter/arlo-golang/internal/request"
|
2017-12-10 19:17:09 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type Arlo struct {
|
|
|
|
user string
|
|
|
|
pass string
|
|
|
|
client *request.Client
|
2018-09-17 04:44:41 +00:00
|
|
|
Account Account
|
|
|
|
Basestations Basestations
|
|
|
|
Cameras Cameras
|
2017-12-10 19:17:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func newArlo(user string, pass string) *Arlo {
|
|
|
|
|
|
|
|
c, _ := request.NewClient(BaseUrl)
|
|
|
|
arlo := &Arlo{
|
|
|
|
user: user,
|
|
|
|
pass: pass,
|
|
|
|
client: c,
|
|
|
|
}
|
|
|
|
|
|
|
|
return arlo
|
|
|
|
}
|