Documentation ¶
Index ¶
- func LocationRequest(url string, accessToken string) string
- type Adapter
- type Body
- type CommandTypes
- type Context
- type Device
- type Event
- type ExchangeRequest
- type ExchangeResponse
- type FingerPrint
- type General
- type History
- type Impulse
- type ImpulseV1
- type OAuthRequest
- type OAuthRequestWithRefreshToken
- type OAuthResponse
- type ResetChip
- type ResetNetwork
- type RingWSConnection
- type UserLocation
- type UserLocations
- type V1
- type V2
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LocationRequest ¶
Types ¶
type CommandTypes ¶
type CommandTypes struct { ResetChip ResetChip `json:"reset-chip"` ResetNetwork ResetNetwork `json:"reset-network"` }
type Context ¶
type Context struct { EventID string `json:"eventId"` EventOccurredTsMs int64 `json:"eventOccurredTsMs"` AffectedEntityType string `json:"affectedEntityType"` AffectedEntityID string `json:"affectedEntityId"` AffectedEntityName string `json:"affectedEntityName"` InitiatingEntityType string `json:"initiatingEntityType"` InitiatingEntityID string `json:"initiatingEntityId"` InitiatingEntityName string `json:"initiatingEntityName"` InterfaceType string `json:"interfaceType"` InterfaceID string `json:"interfaceId"` InterfaceName string `json:"interfaceName"` AffectedParentID string `json:"affectedParentId"` AffectedParentName string `json:"affectedParentName"` AccountID string `json:"accountId"` ProgramID string `json:"programId"` UserAgent string `json:"userAgent"` IPAddress string `json:"ipAddress"` AssetID string `json:"assetId"` AssetKind string `json:"assetKind"` }
type ExchangeRequest ¶
type ExchangeRequest struct {
AccessToken string `json:"access_token"`
}
type ExchangeResponse ¶
type ExchangeResponse struct {
AccessToken string `json:"access_token"`
}
func AccessTokenRequest ¶
func AccessTokenRequest(url string, exchangeRequest ExchangeRequest) ExchangeResponse
type FingerPrint ¶
type History ¶
type OAuthRequest ¶
type OAuthRequestWithRefreshToken ¶ added in v1.3.0
type OAuthResponse ¶
type OAuthResponse struct { AccessToken string `json:"access_token"` ExpiresIn string `json:"expires_in"` RefreshToken string `json:"refresh_token"` Scope string `json:"scope"` TokenType string `json:"token_type"` Error string `json:"error"` ErrorDescription string `json:"error_description"` NextTimeInSeconds int32 `json:"next_time_in_secs"` Phone string `json:"phone"` }
func AuthRequest ¶
func AuthRequest(url string, oauthRequest OAuthRequest, code string) (OAuthResponse, error)
func AuthRequestWithRefreshToken ¶ added in v1.3.0
func AuthRequestWithRefreshToken(url string, oauthRequest OAuthRequestWithRefreshToken) (OAuthResponse, error)
type ResetNetwork ¶
type ResetNetwork struct {
RequiresTrust bool `json:"reset-network"`
}
type RingWSConnection ¶
RingWSConnection is a type for Ring Connection response API.
func ConnectionRequest ¶
func ConnectionRequest(url string, locationId string, accessToken string) RingWSConnection
type UserLocation ¶
type UserLocation struct {
LocationID string `json:"location_id"`
}
type UserLocations ¶
type UserLocations struct {
Location []UserLocation `json:"user_locations"`
}
type V2 ¶
type V2 struct { AdapterType string `json:"adapterType"` BatteryLevel int `json:"batteryLevel"` BatteryStatus string `json:"batteryStatus"` CatalogID string `json:"catalogId"` // CategoryID string `json:"categoryId"` CommStatus string `json:"commStatus"` CommandTypes CommandTypes `json:"commandTypes"` DeviceFoundTime int64 `json:"deviceFoundTime"` DeviceType string `json:"deviceType"` LastCommTime int64 `json:"lastCommTime"` LastUpdate int64 `json:"lastUpdate"` ManagerID string `json:"managerId"` Name string `json:"name"` PollInterval int `json:"pollInterval"` RoomID int `json:"roomId"` SetupByPluginStatus string `json:"setupByPluginStatus"` SetupByUserStatus string `json:"setupByUserStatus"` SubCategoryID int `json:"subCategoryId"` Tags []string `json:"tags"` TamperStatus string `json:"tamperStatus"` ZID string `json:"zid"` AdapterZID string `json:"adapterZid"` }
Click to show internal directories.
Click to hide internal directories.