Documentation ¶
Overview ¶
Package vapix provides functions to interact with Axis camera VAPIX API.
Index ¶
Constants ¶
View Source
const INTERNAL_VAPIX_ENDPOINT = "http://127.0.0.12"
Variables ¶
This section is empty.
Functions ¶
func CheckForVapixError ¶
func CheckForVapixError(vap VapixApiCall) error
func InternalVapixUrlPathJoin ¶
INTERNAL_VAPIX_ENDPOINT = "http://127.0.0.12" + given path
func ParseUpdateResponse ¶
Types ¶
type RequestResult ¶
type RequestResult struct { IsOk bool Error error Password string ResponseReader io.ReadCloser StatusCode int }
func VapixGet ¶
func VapixGet(username, password, url string) RequestResult
on success the ResponseReader must be closed by user
func VapixPost ¶
func VapixPost(username, password, url string, data interface{}) RequestResult
on success the ResponseReader must be closed by user
type VapixApiCall ¶
type VapixApiCall struct { ApiVersion string `json:"apiVersion"` Context string `json:"context"` Method string `json:"method"` Error *VapixError `json:"error"` Data struct { PropertiesList map[string]interface{} `json:"propertyList"` } `json:"data"` }
func JsonResponseParser ¶
func JsonResponseParser(responseReader io.ReadCloser) (*VapixApiCall, error)
func NewVapixBaseMethodCall ¶
func NewVapixBaseMethodCall(method string) *VapixApiCall
type VapixError ¶
Click to show internal directories.
Click to hide internal directories.