Getting Started with the API
Easily connect through the API with the following code!
Json Get Request Example Code
{
"weightUnits":lbs,
"grossLimit":80000,
"steerLimit":12000,
"driveLimit":34000,
"trailerLimit":34000,
"allowableOverage":250,
"steerWeight":11820,
"driveWeight":34860,
"trailerWeight":32500,
"holeSpaceUnit":in,
"holeSpacing":6,
"currentHole":12,
"minimumHole":1,
"maximumHole":50,
"targetBalance":"drivesTrailerEqual"
}
Explanations of requests
Column:Units #explanation/restrictions- weightUnits: lbs or Kg #what unit type is being entered
- grossLimit:Weight Units, #maximum allowable weight for the entire vehicle
- steerLimit:Weight Units, #maximum weight allowed on the steer axel
- driveLimit:Weight Units, #maximum weight allowed on the drive axels
- trailerLimit:Weight Units #maximum weight allowed on the trailer axels
- allowableOverage:Weight Units#0-300 lbs or 0-136kg and maximum weight allowed over each axel set
- steerWeight:Weight Units #current weight on steer axels
- driveWeight:Weight Units #current weight on drive axels
- trailerWeight:Weight Units #current weight on trailer axels
- holeSpaceUnit: cm or in
- holeSpacing:space between each hole #4/6 inches or 10/15cm
- currentHole:number #current hole trailer is placed in
- minimumHole:number #lowest allowable hole
- maximumHole:number #largest allowable hole
- targetBalance:drivesTrailerEqual or maximizedTrailerWeight
Example returned
{
"changeHoles":-4,
"expectedSteerWeight":11820,
"expectedDriveWeight":34860,
"expectedTrailerWeight":32500,
"blockedByMinHole":false,
"blockedByMaxHole":false
}
Explanations of Returned
Column:Units #explanation/restrictions- changeHoles:-4 #number of holes to move forward or back
- expectedSteerWeight:11820 #expected weight on steer axel
- expectedDriveWeight:34860 #expected weight over drive axel
- expectedTrailerWeight:32500 #expected weight over trailer axel
- blockedByMinHole:false #if changing holes will be restricted by minhole
- blockedByMaxHole:false #if changing holes will be restriced by maxhole