tspsdk

package module
v1.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2021 License: MIT Imports: 10 Imported by: 0

README

bluebird-sdk-go

TSP3.0(Bluebird)Go SDK

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Cfg *Config
}

func (*Auth) GetToken

func (p *Auth) GetToken() (*result.AuthResult, error)

获取token

type Blood added in v1.0.1

type Blood struct {
	Cfg *Config
}

func (*Blood) GetBlood added in v1.0.1

func (p *Blood) GetBlood(query *query.BloodGetQuery) (*result.BloodGetResult, error)

获取最新血压数据

func (*Blood) GetBloodUpload added in v1.0.11

func (p *Blood) GetBloodUpload(query *query.BloodUploadGetQuery) (*result.TemperatureUploadResult, error)

获取血压测量间隔时间

func (*Blood) GetBloods added in v1.0.1

func (p *Blood) GetBloods(query *query.BloodsGetQuery) (*result.BloodsGetResult, error)

获取血压列表

func (*Blood) UpdateBloodUpload added in v1.0.11

func (p *Blood) UpdateBloodUpload(param *query.BloodUploadSetQuery) (*result.Result, error)

设置血压测量间隔时间

type Config

type Config struct {
	HttpClient *util.Request
}

type Device

type Device struct {
	Cfg *Config
}

func (*Device) BindDevice added in v1.0.1

func (p *Device) BindDevice(query *query.DeviceBindQuery) (*result.Result, error)

设备绑定

func (*Device) DeviceUpdate added in v1.0.7

func (p *Device) DeviceUpdate(query *query.DeviceUpdateQuery) (*result.Result, error)

更新设备信息

func (*Device) GetDevice added in v1.0.1

func (p *Device) GetDevice(query *query.DeviceGetQuery) (*result.DeviceGetResult, error)

设备详情

func (*Device) GetDeviceIsOnline added in v1.0.1

func (p *Device) GetDeviceIsOnline(query *query.DeviceIsOnlineQuery) (*result.DeviceIsOnlineResult, error)

判断设备是否在线

func (*Device) GetDeviceModules added in v1.0.1

func (p *Device) GetDeviceModules(query *query.DeviceModulesQuery) (*result.DeviceModulesResult, error)

获取设备功能清单

func (*Device) GetDevices added in v1.0.1

func (p *Device) GetDevices(query *query.DevicesGetQuery) (*result.DevicesResult, error)

获取设备列表

func (*Device) SendDnd added in v1.0.6

func (p *Device) SendDnd(query *query.DeviceDndQuery) (*result.Result, error)

下发设置免打扰时间段指令

func (*Device) SendFamily added in v1.0.1

func (p *Device) SendFamily(query *query.DeviceFamilyQuery) (*result.Result, error)

下发设置亲情号码指令

func (*Device) SendFindDevice added in v1.0.1

func (p *Device) SendFindDevice(query *query.DeviceFindQuery) (*result.Result, error)

下发设备寻找指令

func (*Device) SendHost added in v1.0.1

func (p *Device) SendHost(query *query.DeviceHostQuery) (*result.Result, error)

下发设置终端host指令

func (*Device) SendLocate added in v1.0.1

func (p *Device) SendLocate(query *query.DeviceLocateQuery) (*result.Result, error)

下发定位指令到终端

func (*Device) SendLocateMode added in v1.0.1

func (p *Device) SendLocateMode(query *query.DeviceLocateModeQuery) (*result.Result, error)

下发设置定位模式指令

func (*Device) SendLocateUpload added in v1.0.1

func (p *Device) SendLocateUpload(query *query.DeviceLocateUploadQuery) (*result.Result, error)

下发定位上报间隔指令

func (*Device) SendMessage added in v1.0.1

func (p *Device) SendMessage(query *query.DeviceMessageQuery) (*result.Result, error)

透传报文

func (*Device) SendMonitor added in v1.0.6

func (p *Device) SendMonitor(query *query.DeviceMonitorQuery) (*result.Result, error)

下发聆听指令

func (*Device) SendPowerOff added in v1.0.1

func (p *Device) SendPowerOff(query *query.DevicePowerOffQuery) (*result.Result, error)

下发关机指令

func (*Device) SendRestart added in v1.0.1

func (p *Device) SendRestart(query *query.DeviceRestartQuery) (*result.Result, error)

下发重启指令

func (*Device) SendUdtime added in v1.0.1

func (p *Device) SendUdtime(query *query.DeviceUdtimeQuery) (*result.Result, error)

下发定位时间段指令

func (*Device) UnBindDevice added in v1.0.1

func (p *Device) UnBindDevice(query *query.DeviceUnBindQuery) (*result.Result, error)

设备解绑

type Fence added in v1.0.1

type Fence struct {
	Cfg *Config
}

func (*Fence) CreateFence added in v1.0.1

func (p *Fence) CreateFence(query *query.FenceCreateQuery) (*result.FenceCreateResult, error)

创建围栏

func (*Fence) DeleteFence added in v1.0.1

func (p *Fence) DeleteFence(query *query.FenceDeleteQuery) (*result.Result, error)

删除围栏

func (*Fence) GetFences added in v1.0.1

func (p *Fence) GetFences(query *query.FencesGetQuery) (*result.FencesGetResult, error)

获取围栏列表

type Heart added in v1.0.1

type Heart struct {
	Cfg *Config
}

func (*Heart) GetHeart added in v1.0.1

func (p *Heart) GetHeart(query *query.HeartGetQuery) (*result.HeartResult, error)

获取最新心率数据

func (*Heart) GetHeartUpload added in v1.0.1

func (p *Heart) GetHeartUpload(query *query.HeartUploadGetQuery) (*result.HeartUploadResult, error)

获取心率测量间隔时间

func (*Heart) GetHearts added in v1.0.1

func (p *Heart) GetHearts(query *query.HeartsGetQuery) (*result.HeartsResult, error)

获取心率列表

func (*Heart) UpdateHeartUpload added in v1.0.1

func (p *Heart) UpdateHeartUpload(param *query.HeartUploadSetQuery) (*result.Result, error)

设置心率测量间隔时间

type Sleep added in v1.0.1

type Sleep struct {
	Cfg *Config
}

func (*Sleep) GetSleeps added in v1.0.1

func (p *Sleep) GetSleeps(query *query.SleepsGetQuery) (*result.SleepsResult, error)

获取睡眠列表

type Step added in v1.0.1

type Step struct {
	Cfg *Config
}

func (*Step) GetSteps added in v1.0.1

func (p *Step) GetSteps(query *query.StepsGetQuery) (*result.StepsResult, error)

获取计步列表

type Temperature

type Temperature struct {
	Cfg *Config
}

func (*Temperature) GetTemperature

func (p *Temperature) GetTemperature(query *query.TemperatureGetQuery) (*result.TemperatureResult, error)

获取最新体温数据

func (*Temperature) GetTemperatureUpload

func (p *Temperature) GetTemperatureUpload(query *query.TemperatureUploadGetQuery) (*result.TemperatureUploadResult, error)

获取体温测量间隔时间

func (*Temperature) GetTemperatures

func (p *Temperature) GetTemperatures(query *query.TemperaturesGetQuery) (*result.TemperaturesResult, error)

获取体温列表

func (*Temperature) UpdateTemperatureUpload

func (p *Temperature) UpdateTemperatureUpload(param *query.TemperatureUploadSetQuery) (*result.Result, error)

设置体温测量间隔时间

type Track added in v1.0.1

type Track struct {
	Cfg *Config
}

func (*Track) GetTracks added in v1.0.1

func (p *Track) GetTracks(query *query.TracksGetQuery) (*result.TracksGetResult, error)

获取轨迹列表

type Tsp

type Tsp struct {
	Cfg *Config
}

func NewAuth

func NewAuth(gateWay, appKey, secret string) *Tsp

获取token(只用来获取token)

func NewClient

func NewClient(gateWay, appKey, token string) *Tsp

获取其它接口数据时在header里面携带token

func (*Tsp) Auth

func (p *Tsp) Auth() *Auth

鉴权

func (*Tsp) Blood added in v1.0.1

func (p *Tsp) Blood() *Blood

血压

func (*Tsp) Device added in v1.0.1

func (p *Tsp) Device() *Device

设备

func (*Tsp) Fence added in v1.0.1

func (p *Tsp) Fence() *Fence

围栏

func (*Tsp) Heart added in v1.0.1

func (p *Tsp) Heart() *Heart

心率

func (*Tsp) Sleep added in v1.0.1

func (p *Tsp) Sleep() *Sleep

睡眠

func (*Tsp) Step added in v1.0.1

func (p *Tsp) Step() *Step

计步

func (*Tsp) Temperature

func (p *Tsp) Temperature() *Temperature

体温

func (*Tsp) Track added in v1.0.1

func (p *Tsp) Track() *Track

轨迹

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL