Versions in this module Expand all Collapse all v1 v1.0.0 Feb 23, 2022 Changes in this version + const API_CANCEL_EXAM + const API_GET_DEVICE + const API_GET_EXAM + const API_GET_EXAMS + const API_GET_EXAMS_COUNT + const API_GET_FILE + const API_GET_GYMS + const API_GET_KEY + const API_PREFIX + const API_START_EXAM + func GetFileURL(ctx context.Context, path string) (*url.URL, error) + func GetKey(ctx context.Context, accountName, accountPass string) (managerId, apiKey string, err error) + func MustGetFileURL(ctx context.Context, path string) *url.URL + func MustGetKey(ctx context.Context, accountName, accountPass string) (managerId, apiKey string) + func MustRequest(ctx context.Context, path string, body url.Values, dest ...interface{}) + func Params(keysAndValues ...interface{}) url.Values + func Request(ctx context.Context, path string, body url.Values, dest ...interface{}) error + type BasicStandard struct + BmaxpStandard StandardValue + BmiStandard StandardValue + BminpStandard StandardValue + BmrStandard StandardValue + BoneStandard StandardValue + BottomFat float64 + BottomMuscle float64 + FatStandard StandardValue + HeartStandard StandardValue + HeightStandard StandardValue + MuscleStandard StandardValue + ProteinStandard StandardValue + ReactionStandard StandardValue + SubfatStandard StandardValue + TopFat float64 + TopMuscle float64 + TrunkFat float64 + TrunkMuscle float64 + VisfatStandard StandardValue + WaterStandard StandardValue + WeightStandard StandardValue + WhrStandard StandardValue + type Client struct + func NewClient(managerId, apiKey string) *Client + func (client Client) MustRequest(ctx context.Context, path string, body url.Values, dest ...interface{}) + func (client Client) Request(ctx context.Context, path string, body url.Values, dest ...interface{}) error + type Device struct + DeviceID string + DeviceName string + GmtCreate Timestamp + GmtModify Timestamp + GymID string + GymName string + IsDeleted string + Service string + State string + Type string + type Exam struct + AerobicGoal float64 + Age int + Agility int + AnaGoal float64 + Balance int + BalanceAngle float64 + BloodMaxPressure int + BloodMinPressure int + BloodOxygen int + Bmi float64 + Bmr float64 + BodyAge int + BodyDetect *ScoreXYByBodyParts + BodyImage string + BodyShape int + BodyShapeRisk int + Bone float64 + CaloriesInput float64 + CustomerID string + DeviceFrom string + EnduGoal float64 + Fat float64 + FatControl float64 + FatLeftArm float64 + FatLeftLeg float64 + FatRightArm float64 + FatRightLeg float64 + FatTrunk float64 + GmtCreate Timestamp + GmtModify Timestamp + GymID string + GymName string + HeartFun int + Height float64 + Hips float64 + HumpbackRisk int + Id string + InFat float64 + Language string + LegRisk string + Muscle float64 + MuscleControl float64 + MuscleLeftArm float64 + MuscleLeftLeg float64 + MuscleRightArm float64 + MuscleRightLeg float64 + MuscleTrunk float64 + Name string + PelvisRisk int + PerfectWeight float64 + Phone string + PostureRisk int + Protein float64 + R100LeftArm float64 + R100LeftLeg float64 + R100RightArm float64 + R100RightLeg float64 + R100Trunk float64 + R20LeftArm float64 + R20LeftLeg float64 + R20RightArm float64 + R20RightLeg float64 + R20Trunk float64 + RestingHeartRate int + Score int + Sex string + ShoulderRisk int + SideBodyDetect *ScoreXYByBodyParts + SideImage string + SportGoal float64 + SportLevel int + SportSafeRisk int + SubFat float64 + UnitType string + UserID string + VitalCapacity int + Waist float64 + Water float64 + Wc float64 + Weight float64 + WeightControl float64 + type ExamWithStandards struct + BasicStandard *BasicStandard + Exam *Exam + HeightGrowthStandard *StandardValues + WeightGrowthStandard *StandardValues + func (s *ExamWithStandards) UnmarshalJSON(data []byte) error + type Gym struct + Address string + Admin string + AdminPhone string + City string + GmtCreate Timestamp + GmtModify Timestamp + GpsX float64 + GpsY float64 + GymName string + Id string + Images stringSlice + LoginName string + Logo string + Province string + State string + type ResponseError struct + Code int + Message string + OK bool + func (e ResponseError) Error() string + type ScoreXY struct + Score float64 + X float64 + Y float64 + type ScoreXYByBodyParts struct + BodyDirection int + FullBody bool + LeftAnkle ScoreXY + LeftEar ScoreXY + LeftElbow ScoreXY + LeftEye ScoreXY + LeftHip ScoreXY + LeftKnee ScoreXY + LeftMouthCorner ScoreXY + LeftShoulder ScoreXY + LeftWrist ScoreXY + Neck ScoreXY + Nose ScoreXY + RightAnkle ScoreXY + RightEar ScoreXY + RightElbow ScoreXY + RightEye ScoreXY + RightHip ScoreXY + RightKnee ScoreXY + RightMouthCorner ScoreXY + RightShoulder ScoreXY + RightWrist ScoreXY + TopHead ScoreXY + func (s *ScoreXYByBodyParts) UnmarshalJSON(data []byte) error + type StandardRange struct + Age int + Fewer float64 + Fewest float64 + More float64 + Most float64 + Standard float64 + func (sr StandardRange) AsStandardValue() StandardValue + type StandardValue [6]float64 + type StandardValues []StandardValue + type Timestamp time.Time + func (ts *Timestamp) UnmarshalJSON(data []byte) error + func (ts Timestamp) MarshalJSON() ([]byte, error) + func (ts Timestamp) String() string